Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have an application called foo that runs as root.

The foo calls system function to execute the other application which show tray icon using Qt.

The Systray Icon Example in Qt is working properly in user account but not in root.

I run the following command to drop privileges: system(“exec su -l user -c ‘export DISPLAY=:0; /opt/systray &’”);

However, the systray icon doesn’t appear in Ubuntu 13.10 & 14.04.

Is there any way to display this systray in this case except for the solution that uses a PPA that comes with to re-enable the systray whitelist?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.