This forum has been archived. All content is frozen. Please use KDE Discuss instead.

No Tooltips when run as Super user

Tags: None
(comma "," separated)
tzabal
Registered Member
Posts
4
Karma
0
OS

No Tooltips when run as Super user

Tue Jun 28, 2011 7:25 pm
Hello,

When i execute an application that has a system tray icon (ex. Amarok) with super user privileges (ex. using sudo or kdesudo), the KSNI tooltip is not appearing when i hover on the application's system tray icon.

Well, i need to start an application that requires super user privileges to function properly and has a system tray icon.
The system tray icon is appearing properly, but the KSNI tooltip doesn't.

When i invoke it as a normal user, it registers the system tray icon and the tooltip works.

Have you got any idea how i can fix that?

Thanks in advance,
tzabal
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The icon probably doesn't appear properly as it can't operate on the user session bus as it is running as root rather than the user. This is a result of D-Bus security policy. Therefore the application falls back to the old X based system tray.

Which application is this? All KDE applications should use the KAuth framework to execute actions as root when they need to.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
tzabal
Registered Member
Posts
4
Karma
0
OS
Any KDE Application that has a System Tray Icon (ex. Amarok, KAlarm) and a KSNI Tooltip, when is invoked from a normal user with the command kdesudo app, the system tray icon is appearing but the KSNI Tooltip doesn't.
Probably the issue is derived from the D-Bus security policy that you mentioned because when i logged in as root with X session, all the applications with a KSNI Tooltip were behaving correctly.

I created a test app that has a system tray icon with a KSNI Tooltip.
Image

The first red ball icon, is the test application that invoked with kdesudo ./systray. The second one with the KSNI Tooltip, invoked with ./systray.
If i hover on the first icon, i won't get the KSNI Tooltip.

This behavior is the same in all the applications that i tested in my system (Kubuntu 11.04, KDE 4.6.2).
So, is there any way to have a KSNI Tooltip when a KDE Application is invoked from a normal user with super user privileges (i.e kdesudo)?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Ok, that is definitely what I identified as the issue.

You cannot as far as I am aware, allow other users applications to connect to your D-Bus session bus - which Plasma and KDE Daemon need to be able to provide a KSNI enabled System Tray icon - and thus the tooltip.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]