You are not logged in.
For example,
sudo mousepad "Failed to initialize xfconf"
I use i3.
What is it about? The wiki doesn't say anything about "xconf"
My .xinitrc
http://sprunge.us/W0aKqt
Last edited by antarchtic (2020-11-12 18:17:52)
Offline
Why are you trying to use sudo to launch graphical applications? It's really not a good idea.
Also why are you using dbus-launch in your ~/.xinitrc?
Offline
Why are you trying to use sudo to launch graphical applications? It's really not a good idea.
Also why are you using dbus-launch in your ~/.xinitrc?
Just for testing, I use commented "exec i3".
It did not affect to launch applications from sudo anyway...
Why is this a bad idea? I need to to edit some system wide configs from GUI text editor.
... or even just want everything to work correctly ![]()
Sometimes I need it.
Last edited by antarchtic (2020-11-12 17:59:06)
Offline
Why is this a bad idea? I need to to edit some system wide configs from GUI text editor.
... or even just want everything to work correctly
Sometimes I need it.
I think you should look up the definition of "need"
You never, ever need a GUI text editor to edit system configs.
Offline
antarchtic wrote:Why is this a bad idea? I need to to edit some system wide configs from GUI text editor.
... or even just want everything to work correctly
Sometimes I need it.I think you should look up the definition of "need"
You never, ever need a GUI text editor to edit system configs.
I like nano but it has no syntax highlighting... Vim is something scary for me.
I think there is nothing wrong with a graphical text editor for convenience
Offline
Please use sudoedit and export your favorite $EDITOR
Edit: it's a bad idea because GUI applications (and emacs
) tend to be bloated bug collections what makes them very vulnerable.
You want to limit the stuff you run as UID0 as much as possible.
Last edited by seth (2020-11-12 18:15:46)
Offline
Please use sudoedit and export your favorite $EDITOR
With variable works fine, thanks again
Offline
Joking aside, emacs does have TRAMP mode to allow the ability to selectively access files with higher privilege. I'm pretty sure it still represents a security issue; as does any editor given permission to do dangerous things. Some editors are more dangerous than others, especially those written without being intended to edit dangerous things.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Joking aside, emacs does have TRAMP mode to allow the ability to selectively access files with higher privilege. I'm pretty sure it still represents a security issue; as does any editor given permission to do dangerous things. Some editors are more dangerous than others, especially those written without being intended to edit dangerous things.
This has its own truth, but for the sake of knowledge sometimes I need to break something. Everything is relative)
Offline
I like nano but it has no syntax highlighting
Not true. https://wiki.archlinux.org/index.php/Na … ghlighting
Offline
Afaiu the TRAMP mode, it's not much different from sudoedit; ie. it operates on a local copy and uses a "remote" protocol (su/do) to upload the file to its original location.
That's perfectly fine and not like running emacs as UID0
…
It's also not very surprising that emacs provides its own access leverage system.
After all it's a pretty decent OS that even runs vim!![]()
Offline