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 kdesudoWindows no longer obstruct 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
 
- 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
 No, it uses roots environment: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.
 
 So all settings are saved to /root rather then your home and you cannot read roots settings. Some dialogs are designed to affect system settings when run as root (such as the grub one) but phonon is only meant to be run as a normal user.Code:kdesudo konsole # echo $HOME /root 
 - Top
- Bottom
 
- 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
 I stand corrected.Windows no longer obstruct 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
- 9625
- 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
- 9625
- 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
- 9625
- Seattle, WA, USA
- Send PM
 
 Yawp, I've experienced the same KDEctomy myself!Originally posted by diblthe user is done logging in to KDE
 - Top
- Bottom
 Comment
- 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
 That's the difference that commonly creates the most "havoc", but not the only one.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
- 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
 Hmm...I don't think running 'sudo kate' should change the .Xauthority ownership (kate configs and caches are another matter)...something like sudo startx probably could.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
- 9625
- Seattle, WA, USA
- Send PM
 
 - Top
- Bottom
 Comment
- 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
 He's ba-a-a-ack! Windows no longer obstruct my view. Windows no longer obstruct 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
- 9625
- Seattle, WA, USA
- Send PM
 
- 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
 Potato, patato. You say Amond, I say almond. Windows no longer obstruct my view. Windows no longer obstruct 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
Users Viewing This Topic
				
					Collapse
				
			
		
	There are 0 users viewing this topic.




 
							
						
Comment