summaryrefslogtreecommitdiffstats
path: root/abs/extra/libcanberra/libcanberra.xinit
blob: 2511e9f8ac9e29d7646f38b8c7eede473a5f14b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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