diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 14:41:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 14:41:01 +0000 |
commit | 1a2738532d1c95e1d48701628cd81ca96c267761 (patch) | |
tree | a67781318e259d176e6d6d056501bc6a372a8453 /debian/55gnome-session_gnomerc | |
parent | Adding upstream version 3.38.0. (diff) | |
download | gnome-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_gnomerc | 23 |
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 |