![]() |
GUI application as a root
Forgive me if it is a dumb question but what is the proper way to run random gui application as a root under Sailfish? I have found that I need to export XDG_RUNTIME_DIR=/run/user/10000/ but I need to do it every time I start terminal. Second problem is incorrect ambiance color when I start app using devel-su.
|
Re: GUI application as a root
This is the worst idea i have ever seen. You should never run gui application as root, but nake root daemon to do you dirty things.
|
Re: GUI application as a root
I do not know how it is affected by Wayland, but I rendered myself unable to login by running a GUI app as root under X11; it took ownership of some configuration files and the login process would fail after that. As this was a desktop I fixed it from the shell mode; but Sailfish doesn't have that option. I'd say it's probably not a good idea.
|
Re: GUI application as a root
I said random because I want to know global solution but I had in mind particular applications like text editor or file browser. What about when I want to edit some file which require root. I don't want to open tiny root (or filecase root ) and then search particular file instead just type tinyedit dirty.txt.
I know there is vim (or similars) but it doesn't works correct with my keyboard mapping and fingerterm. Anyway reading big files is nicer with gui. |
Re: GUI application as a root
devel-su
command-that-launches-the-application (like jolla-notes, harbour-cargodock or harbour-file-browser) Hold on tight, expect breakage. |
Re: GUI application as a root
1 Attachment(s)
Breakage is the right word. This is the result of trying to open a file from File Manager runnng as root. It froze and would not close so I opened another instance. And another. Eventually I had to kill them all from the command line.
Attachment 38677 |
Re: GUI application as a root
There is no froze effect in filecase so I suspect you are using something else.
|
Re: GUI application as a root
Sorry, I said File Manager. I meant File Browser.
I have three file managers but no filecase. I tried it but did not like it. Cargo Dock and Filetug do not freeze but opening for example an MP3 does not work properly. It pretends to play but no sound comes out. |
Re: GUI application as a root
If it worked before the last update, I suppose they're both looking for an old version of gstreamer (0.10) which is no longer in use on 2.0.2 (which has only gstreamer 1.0).
|
Re: GUI application as a root
Hmm. To be honest, I do not know if they worked before. I never felt the need to play MP3s as root. But both can play them when started as nemo. Why would they try to use different versions of the same library as different users?
|
All times are GMT. The time now is 06:04. |
vBulletin® Version 3.8.8