Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: HOWTO: Keep your theme consistent when running apps as root.

  1. #1
    Join Date
    Feb 2006
    Location
    Saskatoon, SK
    Beans
    381
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    HOWTO: Keep your theme consistent when running apps as root.

    If you've ever modified your theme and went into synaptic or nautilus (as root) only to find that the interface is the boring default one then this fix is for you.

    It's really simple actually. Simply run these commands.
    Code:
    sudo rm -R /root/.themes
    sudo rm -R /root/.icons
    sudo ln -s /home/$USER/.themes /root
    sudo ln -s /home/$USER/.icons /root
    And now administrative apps (such as Synaptic) will be able to use your current theme.

    The one caveat is that should a new theme be added while gnome-theme manager is running as root, then the new theme will be uninstallable by the user unless he/she does so as root (or changes the permissions of the newly added/updated theme folder). This should never happen under normal circumstances.
    Last edited by Zeroangel; April 3rd, 2006 at 09:50 AM.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world"
    -- Albert Einstien

  2. #2
    Join Date
    Nov 2005
    Location
    Australia
    Beans
    44
    Distro
    Ubuntu 6.10 Edgy

    Re: HOWTO: Keep your theme consistent when running apps as root.

    me@Ubuntu:~$ sudo ln -s /home/me/.themes/* /root/.themes/
    ln: when making multiple links, last argument must be a directory

    what has happened here?


    Thanks

  3. #3
    Join Date
    Oct 2005
    Beans
    46

    Re: HOWTO: Keep your theme consistent when running apps as root.

    Surely this is VERY bad advice.

    As soon as a program (for whatever reason) writes to ~/.icons & ~/.themes then thoose files will be owned by root, meaning you have to chmod as root.

    Sorry for bashing, but this seems really stupid imo... but I am still a newbie myself so I probably wrong.

    Anyone else have any thoughts?

    P.S.

    Pretzal, you probably have to do something like
    Code:
    sudo mkdir /root/.themes

  4. #4
    Join Date
    Feb 2006
    Location
    Saskatoon, SK
    Beans
    381
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Keep your theme consistent when running apps as root.

    I can't see a situation where that might happen. Except maybe if you run 'gksudo gnome-theme-manager' and install the same theme over top of an existing one.

    I would like to read any better ideas that people might have.
    Last edited by Zeroangel; March 22nd, 2006 at 08:11 PM.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world"
    -- Albert Einstien

  5. #5
    Join Date
    Mar 2005
    Beans
    17
    Distro
    Ubuntu Breezy 5.10

    Re: HOWTO: Keep your theme consistent when running apps as root.

    The only thing I would change is instead of making links to the individual files in your themes folder, make a link to the themes folder itself.

    What I'd really like to know is where to find the file that stores your theme settings so I can link to that too.

  6. #6
    Join Date
    Feb 2006
    Location
    Saskatoon, SK
    Beans
    381
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Keep your theme consistent when running apps as root.

    That is a great idea. I've just tested how gksudo reacts when the /root/.themes and /root/.icons folders do not exist (ie: if the /home/$USER folder is renamed or deleted) and it simply uses the default themes.

    I have edited my first post as per your suggestion.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world"
    -- Albert Einstien

  7. #7
    Join Date
    Nov 2005
    Location
    Ft Myers, FL
    Beans
    552
    Distro
    The Feisty Fawn Testing

    Re: HOWTO: Keep your theme consistent when running apps as root.

    Thanks for the tip ZeroAngel, works like a charm
    Ubuntu Wiki || USDF|| Ubuntu DVDs
    "How do you use your computer, YOUR way or the Gates' way?" -- fwlfckr
    Linux Reg#406708

  8. #8
    Join Date
    Aug 2007
    Beans
    18

    Re: HOWTO: Keep your theme consistent when running apps as root.

    I have newly made a fresh install of Ubuntu 9.04 (JJ), but I can't use these commands. .themes doen't exist in /root.

    How should I do?

    EDIT: Ah, just make the two last commands, since .themes isn't in the /root computer.
    Last edited by qetuR; May 3rd, 2009 at 01:26 PM.

  9. #9
    Join Date
    Jul 2008
    Beans
    25
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Keep your theme consistent when running apps as root.

    Just extract or copy your theme files to /usr/share/themes.

    Works like a charm to me.

  10. #10
    Join Date
    Jul 2008
    Beans
    25
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Keep your theme consistent when running apps as root.

    Try copying or extracting your theme files to usr/share/themes/. Then just select the theme you want to use from theme selector GUI. It will retain the theme you chose even when you run apps as a root.

Page 1 of 2 12 LastLast

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
  •