I don't think so. Launching any GUI app with kdesudo preserves the users environment. There are some quirks (by design?) where you need/must launch a System Settings module 'as root' in order for changes to be preserved between reboots. That's why I suggested this approach. If it works, it works. If it doesn't, then there is some other issue as the root cause (no pun intended) of the OP's problem.
Announcement
Collapse
No announcement yet.
Avoid a KDEctomy: Musings on sudo and kdesudo
Collapse
This topic is closed.
X
X
-
Avoid a KDEctomy: Musings on sudo and kdesudo
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock HolmesTags: None
- Top
- Bottom
-
Originally posted by Snowhog View PostI don't think so. Launching any GUI app with kdesudo preserves the users environment. There are some quirks (by design?) where you need/must launch a System Settings module 'as root' in order for changes to be preserved between reboots. That's why I suggested this approach. If it works, it works. If it doesn't, then there is some other issue as the root cause (no pun intended) of the OP's problem.
Code:kdesudo konsole # echo $HOME /root
- Top
- Bottom
-
I stand corrected.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
Musings on sudo and kdesudo
Inconsistencies...
Code:steve@t520:~$ [B]whoami[/B] steve steve@t520:~$ [B]echo $HOME[/B] /home/steve steve@t520:~$ [B]pwd[/B] /home/steve steve@t520:~$ [B]sudo konsole[/B] root@t520:~# [B]whoami[/B] root root@t520:~# [B]echo $HOME[/B] /home/steve root@t520:~# [B]pwd[/B] /home/steve root@t520:~# [B]exit[/B] steve@t520:~$ [B]kdesudo konsole[/B] root@t520:/home/steve# [B]whoami[/B] root root@t520:/home/steve# [B]echo $HOME[/B] /root root@t520:/home/steve# [B]pwd[/B] /home/steve root@t520:/home/steve# [B]exit[/B] steve@t520:~$
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
Yeah, the difference lies in the value of $HOME. This is also interesting, to see how $XAUTHORITY changes.
Code:steve@t520:~$ [B]sudo env[/B] TERM=xterm LS_COLORS={...snipped...} PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=en_US.UTF-8 HOME=/home/steve LANGUAGE= DISPLAY=:0 XAUTHORITY=/tmp/kde-steve/xauth-1000-_0 SHELL=/bin/bash LOGNAME=root USER=root USERNAME=root MAIL=/var/mail/root SUDO_COMMAND=/usr/bin/env SUDO_USER=steve SUDO_UID=1000 SUDO_GID=1000 steve@t520:~$ [B]kdesudo env[/B] LANGUAGE= PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=en_US.UTF-8 DISPLAY=:0 XAUTHORITY=/tmp/kdesudo-Z27358-xauth TERM=xterm LS_COLORS={...snipped...} HOME=/root SHELL=/bin/bash LOGNAME=root USER=root USERNAME=root MAIL=/var/mail/root SUDO_COMMAND=/usr/bin/env SUDO_USER=steve SUDO_UID=1000 SUDO_GID=1000
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
Originally posted by diblthe user is done logging in to KDE
- Top
- Bottom
Comment
-
Originally posted by SteveRileyYeah, the difference lies in the value of $HOME.
One can run GUI apps with sudo using root's $HOME, but that usually requires a bit of tinkering, something like (but not limited to):
sudo -H XAUTHORITY=$HOME/.Xauthority konsole
Then again, this has very little to do with the topic at hand, and probably belongs in another topic
- Top
- Bottom
Comment
-
Originally posted by diblRight -- when ~/.Xauthority becomes owned by root, as a result of "sudo kate" or something like that, the user is done logging in to KDE. A painful lesson learned the hard way by many a Kubuntu user, including yours truly.
(I'll admit I'm not 100% on that, though, I don't use sudo like that so I don't really have empirical evidence)
Perhaps mod could split us thread privateers onto a new thread, so we don't mask the OP's problem?
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
- Top
- Bottom
Comment
-
He's ba-a-a-ack!Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
-
Potato, patato. You say Amond, I say almond.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
Comment