summarylogtreecommitdiffstats
path: root/libcanberra.xinit
diff options
context:
space:
mode:
Diffstat (limited to 'libcanberra.xinit')
-rw-r--r--libcanberra.xinit17
1 files changed, 17 insertions, 0 deletions
diff --git a/libcanberra.xinit b/libcanberra.xinit
new file mode 100644
index 000000000000..98d2daf7790f
--- /dev/null
+++ b/libcanberra.xinit
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+case "${DESKTOP_SESSION-}" in
+ gnome) # Done by gnome-settings-daemon
+ ;;
+ *)
+ # Extra check in case DESKTOP_SESSION is not set correctly
+ if [[ -z ${GNOME_DESKTOP_SESSION_ID-} ]]; then
+ if [[ -z ${GTK_MODULES-} ]]; then
+ GTK_MODULES="canberra-gtk-module"
+ else
+ GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
+ fi
+ export GTK_MODULES
+ fi
+ ;;
+esac