ROSA Linux Bugzilla – Bug 562
Start GUI program from root in Konsole is crashes
Last modified: 2012-07-24 15:03:59 MSD
Created attachment 421 [details]
Description of problem:
ROSA 2012 RP1 iso 369th
Start GUI program from root in Konsole is crashes. From user in Konsole - its OK.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
what GUI program, any of them ? Was this behavior reproducible in release image ?
I tried to run Kwrite, Okular, Gwenview program, they are not started. Screenshot attached last message. Now tried to run Dolphin, Kopete, Amarok program. All the same, do not start.
That's all there is not only in this iso image. It was still in the 357th iso.
Just to be sure - this is installed system, isn't it ?
What you use for root? It's old upstream bug for GUI software - see this:
This is not a bug, but documented and expected 'su' behavior which can be observed in almost every distribution, not only in ROSA.
The thing is that when some GUI program is being launched from console, it needs to connect to X server which is run under different user. If the server is not configured to accept all connections (and such a configuration should be normally considered as a security hole), it will refuse the connection. The error you will see can depend on application type (pure X11 app, KDE app, etc.).
So just use 'su -' or 'su -l'. Or 'root terminal' KDE application.
Yes, I understood.
I tried "su -", the program will start, but with a different theme design. No theme is Elementary. Screenshot att. next message.
Created attachment 424 [details]
Created attachment 425 [details]
this is expected behaviour.
(In reply to comment #9)
> this is expected behaviour.
But what is the correct way to run a GUI program under root, with the brand ROSA theme?
Programs that work with files (such as file managers, kdirstat-like programs) sometimes need to be run from root.
Alt-F2 -> "kdesu <program>".
Launches successfully Dolphin, Gwenview, Kwrite and other programs mentioned in this bug.
It does, but i am afraid that it uses root user variables, so there is a fair chance that theme will be broken
Yes, kdesu <program> is work. But theme not Elementary.
On the other hand, this allows you to distinguish programs with root privileges from ordinary ones:)
As far as i can imagine we can populate root user dir with some predefined settings, but i am not sure if it is ok.
Yes. This is understandable. But there is one problem. When writing "kdesu dolphin" section and mount other disk. Then close the program and open the Dolphin from the user. What this section is not to look. He writes that "I can not find the folder ...". We have to go back to konsole of the root and do "umount /dev/sda...".