set GTK_THEME in org.gnome.Nautilus.desktop

Affected version

  • Nightly flatpak: No / Can’t test it because I don’t know where I need to edit the file
  • Other: GNOME nautilus 3.32.3

Steps to reproduce

  1. I’am trying to change the theme for nautilus
  2. I did add Exec=env GTK_THEME=Adwaita:dark nautilus --new-window in the following desktop file /usr/share/applications/org.gnome.Nautilus.desktop . When I launch the Files application I still see the current default theme
  3. starting with GTK_THEME=Adwaita:dark nautilus from the console does work


When configured the .desktop file with Exec=env GTK_THEME=Adwaita:dark

Expected behavior

When run GTK_THEME=Adwaita:dark nautilus

The GTK_THEME environment variable is a debugging and development tool; you should not use it when running your applications on your desktop.

Additionally, Nautilus acts as a service: if there’s a window already open, launching a new instance of Nautilus will just tell the running instance to open a new window. The environment variables are not carried over, and even if they were, they are not going to be parsed again (they are only parsed at start up).

Use a dark theme, instead of the dark variant of Adwaita.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.