-# Support for SCIM
-if which scim >/dev/null; then
- export XMODIFIERS=@im=SCIM
- export GTK_IM_MODULE=scim
- export QT_IM_MODULE=scim
- scim -d &
+# Run XDG autostart things. By default don't run anything desktop-specific
+# See xdg-autostart --help more info
+DESKTOP_ENV=""
+if which xdg-autostart >/dev/null; then
+ xdg-autostart $DESKTOP_ENV