[meld: 6/8] freezed: remove XDG_DATA_DIRS hack



commit cd756be4014958055296823bd4b95df1dad5ba44
Author: Vasily Galkin <galkin-vv ya ru>
Date:   Thu Jul 5 23:48:07 2018 +0300

    freezed: remove XDG_DATA_DIRS hack
    
    recent win32 glib builds are confused with XDG_DATA_DIRS
    with ':' separator. Fortunately the hacks looks as not-needed anymore,
    since frozen meld meld is able to show icons and settings without this.

 meld/conf.py | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/meld/conf.py b/meld/conf.py
index 7c4a2c9b..95e47eec 100644
--- a/meld/conf.py
+++ b/meld/conf.py
@@ -33,12 +33,6 @@ def frozen():
     LOCALEDIR = os.path.join(melddir, "share", "mo")
     DATADIR_IS_UNINSTALLED = True
 
-    # This first bit should be unnecessary, but some things (GTK icon theme
-    # location, GSettings schema location) don't fall back correctly.
-    data_dir = os.environ.get('XDG_DATA_DIRS', "/usr/local/share/:/usr/share/")
-    data_dir = ":".join((melddir, data_dir))
-    os.environ['XDG_DATA_DIRS'] = data_dir
-
 
 def uninstalled():
     global DATADIR, LOCALEDIR, DATADIR_IS_UNINSTALLED


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]