summaryrefslogtreecommitdiffstats
path: root/debian/55gnome-session_gnomerc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:41:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:41:01 +0000
commit1a2738532d1c95e1d48701628cd81ca96c267761 (patch)
treea67781318e259d176e6d6d056501bc6a372a8453 /debian/55gnome-session_gnomerc
parentAdding upstream version 3.38.0. (diff)
downloadgnome-session-8ca18f2bdba93ac6da862dbb10791a025ec661bb.tar.xz
gnome-session-8ca18f2bdba93ac6da862dbb10791a025ec661bb.zip
Adding debian version 3.38.0-4.debian/3.38.0-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/55gnome-session_gnomerc')
-rw-r--r--debian/55gnome-session_gnomerc23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/55gnome-session_gnomerc b/debian/55gnome-session_gnomerc
new file mode 100644
index 0000000..57b945f
--- /dev/null
+++ b/debian/55gnome-session_gnomerc
@@ -0,0 +1,23 @@
+# If we are running the GNOME session, source ~/.gnomerc
+
+BASESTARTUP=${STARTUP%% *}
+BASESTARTUP=${BASESTARTUP##*/}
+if [ "$BASESTARTUP" = x-session-manager ]; then
+ BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager))
+fi
+case "$BASESTARTUP" in
+ gnome-session*)
+ GNOMERC=$HOME/.gnomerc
+ if [ -r "$GNOMERC" ]; then
+ . "$GNOMERC"
+ fi
+ # We prepend /usr/share/gnome since its defaults.list actually points
+ # to /etc so it is configurable.
+ if [ -z "$XDG_DATA_DIRS" ]; then
+ XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
+ elif [ -n "${XDG_DATA_DIRS##*/usr/share/gnome*}" ]; then
+ XDG_DATA_DIRS=/usr/share/gnome:"$XDG_DATA_DIRS"
+ fi
+ export XDG_DATA_DIRS
+ ;;
+esac