Results 1 to 3 of 3

Thread: Is there any way to make the root account mirror themes?

  1. #1
    Join Date
    Jun 2007
    Beans
    317

    Is there any way to make the root account mirror themes?

    This is a very minor issue, but I've noticed that whenever I sudo/gksudo some program, the color schemes are all messed up. The window decoration settings are taken from my main desktop user's settings, but everything inside the window seems to be using some bland default color scheme/icons.

    I assume that this is because the root user doesn't have themes set up by default, and when programs are run as root they try to grab root's theme settings which don't exist.

    Is there any easy way to fix this? I'm looking for some way to mirror the current user's theme settings to the root account so running programs as root is truly seamless. It seems like the most obvious way to solve this is to copy my user's theme directory over to root's home, but that isn't exactly a dynamic solution and would require work each time I changed themes. Would it be possible to solve this by making root's theme directory a symlink to my user's theme directory?

  2. #2
    Join Date
    May 2006
    Beans
    562
    Distro
    Ubuntu Development Release

    Re: Is there any way to make the root account mirror themes?

    You are probably using a theme downloaded from somewhere like gnome-look.

    You need to copy the theme to /usr/share/themes and then your windows opened with gksu/sudo will use it. Unfortunately you cannot really use a link to get it to work.

  3. #3
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Is there any way to make the root account mirror themes?

    Pasting these commands in the terminal should do it:
    Code:
    sudo ln -s ~/.themes /root/.themes
    sudo ln -s ~/.icons /root/.icons

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •