Skip to content

Instantly share code, notes, and snippets.

@nyameko
Created April 16, 2018 09:40
Show Gist options
  • Save nyameko/7b382d7b96d66ca5e7fbc8128d19109e to your computer and use it in GitHub Desktop.
Save nyameko/7b382d7b96d66ca5e7fbc8128d19109e to your computer and use it in GitHub Desktop.
#!/bin/sh
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
GTK_MODULES="${GTK_MODULES:+$GTK_MODULES:}canberra-gtk-module"
export GTK_MODULES
fi
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment