Skip to content

Instantly share code, notes, and snippets.

@andrewpayne68
Last active March 24, 2026 12:25
Show Gist options
  • Select an option

  • Save andrewpayne68/239e70e033b41ec531007d5e780ba38a to your computer and use it in GitHub Desktop.

Select an option

Save andrewpayne68/239e70e033b41ec531007d5e780ba38a to your computer and use it in GitHub Desktop.
How to fix rooted applications which do not follow system theme

How to fix applications run as root or sudo which do not follow user's theme

If you start an application, such as Nautilus or Gparted as sudo or root and it has the default GTK theme, here is a solution: simply run the following commands:

sudo ln -s ~/.themes /root/.themes
sudo ln -s ~/.icons /root/.icons
sudo ln -s ~/.fonts /root/.fonts

This will create a symbolic link for your themes, icons and fonts in the root folder for the respective folders and will allow the root applications to to use the theme that you have set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment