View Full Version : [SOLVED] Gedit - root account ( sudo ) have it's own theme .. how to fix it ?
OpenGuard
October 8th, 2009, 08:44 PM
Ok, this is weird ( at least in my eyes ) - if I launch gedit with root privileges, it uses different theme than if I use it in normal mode ( without root privileges ). Does anybody know how to fix this ( see attached screenshot ) ?
OS: Crunchbang 9.04 ( Openbox )
steeleyuk
October 8th, 2009, 08:49 PM
Use this guide. (http://tombuntu.com/index.php/2007/09/18/theme-applications-running-as-root-in-ubuntu/)
You should really use gksu rather than sudo.
OpenGuard
October 8th, 2009, 08:53 PM
Use this guide. (http://tombuntu.com/index.php/2007/09/18/theme-applications-running-as-root-in-ubuntu/)
You should really use gksu rather than sudo.
Didn't helped - still 2 different themes.
fragos
October 9th, 2009, 12:25 AM
All users have their own themes. Root is a user. If you want the same theme, change it when you've opened gedit as administrator.
Joeb454
October 9th, 2009, 12:28 AM
All users have their own themes. Root is a user. If you want the same theme, change it when you've opened gedit as administrator.
I think that would require opening gnome-appearance-properties as root, though I'm not 100% sure.
I like the change in theme, it lets me know which apps (if any) are running as root.
gali98
October 9th, 2009, 12:30 AM
I'm not exactly sure how openbox stores it theme settings, but it most likely saves them in ~.
Just find where the settings are and copy them to /root.
But really I would leave it like it is. That way you know when you are editing a file as root.
Kory
OpenGuard
October 9th, 2009, 12:35 AM
All users have their own themes. Root is a user. If you want the same theme, change it when you've opened gedit as administrator.
Can't do that ( and I'm pretty sure it's not possible at all .. it would be way too insecure, as you could do the same for almost any application, which could result in permission issues, etc. ).
I think that would require opening gnome-appearance-properties as root, though I'm not 100% sure.
I like the change in theme, it lets me know which apps (if any) are running as root.
I'm starting to think that I might leave it as it is. It could be easier to work if I could see in what state my file is, just by looking at it's theme 8-[
I'm not exactly sure how openbox stores it theme settings, but it most likely saves them in ~.
Just find where the settings are and copy them to /root.
But really I would leave it like it is. That way you know when you are editing a file as root.
Kory
They are in /usr/share/themes ( ~/.themes is empty ).
fragos
October 9th, 2009, 12:38 AM
Gedit, Terminal and Nautilus all have their own themes and can be changed within those applications for the user, you or root.
uylug
October 9th, 2009, 12:40 AM
Exactly, root can have its own appearance settings just like any regular user.
Btw, you can link root settings to yours, so that root apps use the same appearance settings as yours.
sudo ln -s ~/.themes /root/.themes
sudo ln -s ~/.icons /root/.icons
sudo ln -s ~/.fonts /root/.fonts
Source: http://tombuntu.com/index.php/2007/09/18/theme-applications-running-as-root-in-ubuntu/
OpenGuard
October 9th, 2009, 12:42 AM
Exactly, root can have its own appearance settings just like any regular user.
How could appearance settings application know that I want to configure gedit, not my overall desktops appearance ( and vice versa ) ? From what you said, I shouldn't be able to change my desktops theme while using gedit with root privileges ? :shock:
gali98
October 9th, 2009, 12:42 AM
They are in /usr/share/themes ( ~/.themes is empty ).
Right. But the actual settings telling openbox what theme you are using should be in your home directory. ~/.themes is probably where you can put the actual theme files, not the settings. :)
Kory
uylug
October 9th, 2009, 12:45 AM
How could appearance settings application know that I want to configure gedit, not my overall desktops appearance ( and vice versa ) ? From what you said, I shouldn't be able to change my desktops theme while using gedit with root privileges ? :shock:
No wait. You can't set appearance settings to gedit, can you? I think you can change your overall desktop appearance. In that case, changing root settings would affect all applications run as root.
OpenGuard
October 9th, 2009, 12:54 AM
No wait. You can't set appearance settings to gedit, can you? I think you can change your overall desktop appearance. In that case, changing root settings would affect all applications run as root.
Ok, well .. now the problem is that I can't seem to find a way to launch appearance settings manager ( as root ) - what's the name of it's executable ?
uylug
October 9th, 2009, 01:00 AM
Ok, well .. now the problem is that I can't seem to find a way to launch appearance settings manager ( as root ) - what's the name of it's executable ?
gnome-appearance-properties
gali98
October 9th, 2009, 01:02 AM
gnome-appearance-properties
Wait a second. I thought you are on OpenBox... What is theming gtk apps?
Kory
uylug
October 9th, 2009, 01:04 AM
Wait a second. I thought you are on OpenBox... What is theming gtk apps?
Kory
Oh. Lol. Sorry, just... thought you were using GTK.
Oh well...
gali98
October 9th, 2009, 01:21 AM
Just making sure ;)
To the original Poster,
This might be what you are looking for:
http://ubuntuforums.org/showthread.php?t=109298
Kory
OpenGuard
October 9th, 2009, 01:34 AM
Just making sure ;)
To the original Poster,
This might be what you are looking for:
http://ubuntuforums.org/showthread.php?t=109298
Kory
http://forums.randi.org/images/smilies/signthankspin.gif
fragos
October 9th, 2009, 02:24 AM
How could appearance settings application know that I want to configure gedit, not my overall desktops appearance ( and vice versa ) ? From what you said, I shouldn't be able to change my desktops theme while using gedit with root privileges ? :shock:
Gedit themes are set in the Preferences function of Gedit not in the System Appearances.
OpenGuard
October 9th, 2009, 02:30 AM
Gedit themes are set in the Preferences function of Gedit not in the System Appearances.
Heh, that would be a nice feature :) I think you meant color schemes, not themes ?
gali98
October 9th, 2009, 04:08 PM
Heh, that would be a nice feature :) I think you meant color schemes, not themes ?
I think you're right. The actual windowing theme is set by gtk AFAIK.
Kory
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.