Systray not showing

Posted by tnrgus on Ask Ubuntu See other posts from Ask Ubuntu or by tnrgus
Published on 2014-05-30T09:04:39Z Indexed on 2014/05/30 9:38 UTC
Read the original article Hit count: 124

Filed under:
|

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?

© Ask Ubuntu or respective owner

Related posts about qt

Related posts about system-tray