summaryrefslogtreecommitdiffstats
path: root/desktop/gnome-shell/gnome-shell.wrap
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gnome-shell/gnome-shell.wrap')
-rw-r--r--desktop/gnome-shell/gnome-shell.wrap14
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/gnome-shell/gnome-shell.wrap b/desktop/gnome-shell/gnome-shell.wrap
new file mode 100644
index 0000000000..51efe348f8
--- /dev/null
+++ b/desktop/gnome-shell/gnome-shell.wrap
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# gnome-shell wrapper script to include a non-standard gschemas directory.
+#
+
+SYS_DATADIR=/usr/share
+ALT_DATADIR=$SYS_DATADIR/gnome-shell/gsettings-desktop-schemas
+
+# Using XDG_DATA_DIRS, since gnome-shell searches these paths for schemas (in order):
+if [ -e "$ALT_DATADIR" ]; then
+ export XDG_DATA_DIRS=$ALT_DATADIR:$SYS_DATADIR:$XDG_DATA_DIRS
+fi
+
+exec /usr/bin/gnome-shell-bin "$@"