[gnome-music/wip/merge: 304/343] Set GSETTINGS_SCHEMA_DIR if running from source and it is not set



commit 06b5ea7449ef8d1e66b9f63c093c299c68bd94f8
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Sun Jul 21 11:31:28 2013 +0800

    Set GSETTINGS_SCHEMA_DIR if running from source and it is not set
    
    This allows us to run from source without installing the settings file.

 gnome-music.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-music.in b/gnome-music.in
index c172c1c..585daed 100644
--- a/gnome-music.in
+++ b/gnome-music.in
@@ -12,6 +12,8 @@ if os.path.exists(os.path.join(srcdir, 'gnome-music.doap')):
     pkgdatadir = os.path.join(srcdir, 'data')
     libgd_libdir = os.path.join(srcdir, 'libgd', '.libs')
     libgd_typelibdir = os.path.join(srcdir, 'libgd')
+    if not os.environ.get('GSETTINGS_SCHEMA_DIR'):
+        os.environ['GSETTINGS_SCHEMA_DIR'] = pkgdatadir
 else:
     pkgdatadir = '@pkgdatadir@'
     libgd_libdir = '@pkglibdir@'


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