I am currently running on suse 11.0 and I experiment several issues trying to run kde4 apps as su.
I run on kde4 as normal user, then I open a Konsole and log as root with su.
I notiecd that I can not run kde4 apps in this way. For eg, kate, konsole, kopete won’t show up but i noticed that a dedicated thread for these applications is running.
The most interesting is that these issues don’t seem to happen whith non kde4 apps launched by su (kaffeine, gtk apps and do on…).
Did you experiment the same problem as me ?
Could you tell me if there is a workaround to fix this problem ?
Create an icon to a command/program to run. Then right-click icon, icon properties, look for the command, choose advanced options, run as another user, choose ‘root’, save, done. When you click the item now, it will give you a password dialog.
Same goes for running a program from somebody else’s account
Running DE-based apps under “su” in a terminal within a DE isn’t the “proper” way to do it. You will run the risk of bunging up your X lock files, and you can’t necessarily ensure the behavior of the app running. Leave su for running typical CLI (non-GUI) based stuff.
KDE has kdesu, GNOME has gksu for launching DE-based apps under root. These keep everything clean with regards to the underlying bits and pieces of the system, and is the preferred way to do it.
Opening a ticket will likely not lead very far. Gregosmith was on the right track with his comment, but it isn’t an issue necessarily between X and KDE4. It’s an issue with su and X, and it’s not really an issue, it’s just the reality of how su and X operate.
Better to just launch apps with kdesu app from Konsole.