[gnome-tweak-tool] Use XDG dirs for themes
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Use XDG dirs for themes
- Date: Sun, 5 Aug 2012 22:23:44 +0000 (UTC)
commit db6e5fb6f0594a4f6508d50cd00acc76ccbfbbb1
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 5 17:12:04 2012 -0400
Use XDG dirs for themes
Make $XDG_DATA_HOME/themes the preferred location for user themes.
We still look in $HOME/.themes for compatibility.
https://bugzilla.gnome.org/show_bug.cgi?id=592370
gtweak/tweaks/tweak_shell.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_shell.py b/gtweak/tweaks/tweak_shell.py
index dca1d60..6c3189d 100644
--- a/gtweak/tweaks/tweak_shell.py
+++ b/gtweak/tweaks/tweak_shell.py
@@ -48,7 +48,8 @@ class ShellThemeTweak(Tweak):
THEME_GSETTINGS_NAME = "name"
THEME_GSETTINGS_DIR = os.path.join(GLib.get_user_data_dir(), "gnome-shell", "extensions",
THEME_EXT_NAME, "schemas")
- THEME_DIR = os.path.join(GLib.get_home_dir(), ".themes")
+ LEGACY_THEME_DIR = os.path.join(GLib.get_home_dir(), ".themes")
+ THEME_DIR = os.path.join(GLib.get_user_data_dir(), "themes")
def __init__(self, **options):
Tweak.__init__(self, "Shell theme", "Install custom or user themes for gnome-shell", **options)
@@ -98,6 +99,7 @@ class ShellThemeTweak(Tweak):
# and not themes/, so add it manually later
dirs = [os.path.join(d, "themes") for d in GLib.get_system_data_dirs()]
dirs += [ShellThemeTweak.THEME_DIR]
+ dirs += [ShellThemeTweak.LEGACY_THEME_DIR]
valid = walk_directories(dirs, lambda d:
os.path.exists(os.path.join(d, "gnome-shell")) and \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]