PDA

View Full Version : [ubuntu] Root windows (like Synaptic) have no theme



thaidog
January 3rd, 2009, 06:04 AM
Any time I bring up a Window that requires a password (like Synaptic) the Window pops up without the theme my desktop is currently using.

Is there any way to change this?

Tim Sharitt
January 3rd, 2009, 06:52 AM
The reason these windows don't share your theme is because they are run as the root user and use the default theme. You can enable the root account and chage its theme to match yours. However, instructions for enabling the root account are frowned on here so you'll have to figure that out yourself :).

ushimitsudoki
January 3rd, 2009, 07:40 AM
If you do decide to do this, let me suggest that you don't just use your own theme for root. (So don't just symlink the files, in other words)

Change it with something like a red border or some touch like that, so you can easily tell by looking at it that you are working as root. You can still have a look that matches your desktop with a bit of added safety.

argie
January 3rd, 2009, 11:11 AM
If you install themes through the System » Appearance dialog box, they get installed only for your user. If you want the themes to be available for all users, they need to be installed to /usr/share/themes/. If you want programs run as the root user to be themed, you have to allow the root user to see these themes. One way is to copy the theme to /usr/share/themes/. The other way is to copy the theme to /root/.themes/

mcduck
January 3rd, 2009, 11:48 AM
One nice trick is to just symlink your personal theme & icon directories into root's theme directories:

sudo ln -s /home/username/.themes /root/.themes
sudo ln -s /home/username/.icons /root/.icons

This way root will always have the same theme you are using.

Personally, I always set the Nautilus background to red for root user. Just to make sure that I'll never confuse the root Nautilus with one running as my own user. For other programs I don't see much need for having a different look, as I really can't imagine any situation where I would use root privileges with an app that I also run as normal user.

ushimitsudoki
January 3rd, 2009, 11:51 AM
Personally, I always set the Nautilus background to red for root user. Just to make sure that I'll never confuse the root Nautilus with one running as my own user. For other programs I don't see much need for having a different look, as I really can't imagine any situation where I would use root privileges with an app that I also run as normal user.

On occasion I have needed to edit a text file as root.

thaidog
January 3rd, 2009, 01:09 PM
If you do decide to do this, let me suggest that you don't just use your own theme for root. (So don't just symlink the files, in other words)

Change it with something like a red border or some touch like that, so you can easily tell by looking at it that you are working as root. You can still have a look that matches your desktop with a bit of added safety.

I agree this is a good practise.

mcduck
January 3rd, 2009, 02:09 PM
On occasion I have needed to edit a text file as root.

Good point. :D I didn't even think of that since I mostly use nano for editing configuration files. But Gedit allows you to set different fonts & colors for root, I guess that would help distinguishing it when running as root while still keeping the same theme for all running applications.

But sure, if you don't change your themes too often, it would be possible to maintain uniform look on your desktop when using different theme for root. I suppose using a variation of the same theme normal user has but with highlight color changed to red would look quite nice.. I just change my desktop theme too often to bother with always changing the root's theme as well.

ushimitsudoki
January 3rd, 2009, 02:14 PM
Heh.

Anyway, it's one of the things I really like about XFCE. You get a small red banner in mousepad and thunar saying "warning, you are using the root account" automatically.

One of many nice touches in XFCE.