]> Dogcows Code - chaz/openbox/commitdiff
add SCIM support to the default autostart. make the autostart run before openbox.
authorDana Jansens <danakj@orodu.net>
Wed, 16 May 2007 19:04:48 +0000 (19:04 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 16 May 2007 19:04:48 +0000 (19:04 +0000)
data/autostart.sh
data/xsession/openbox-session.in

index 962cae071a739a571c827dd6629ad47131107d19..b0f421da24289eef8ab030a0638c7a690db17c57 100644 (file)
@@ -29,3 +29,11 @@ fi
 if which start_kdeinit >/dev/null; then
   LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
 fi
+
+# 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 &
+fi
index c466f17de26f908b975dab24a968d6ea88ca5f57..b3f1c0574b8742883b0ce6d1b28714df69538390 100644 (file)
@@ -4,12 +4,10 @@ AUTOSTART="$HOME/.config/openbox/autostart.sh"
 GLOBALAUTOSTART="@configdir@/openbox/autostart.sh"
 
 if test -e $AUTOSTART; then
-    # sleep for 1 second so Openbox is there before anything else
-    (sleep 1 && . $AUTOSTART) &
+    . $AUTOSTART
 else
     if test -e $GLOBALAUTOSTART; then
-        # sleep for 1 second so Openbox is there before anything else
-        (sleep 1 && . $GLOBALAUTOSTART) &
+        . $GLOBALAUTOSTART
     fi
 fi
 
This page took 0.031483 seconds and 4 git commands to generate.