summaryrefslogtreecommitdiff
path: root/source/x/ibus/ibus-autostart
blob: 4f274335aec0aefc1cca4419cd6a6dcc9e9bf803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

START="no"

if [ "$XIM" = "ibus" ]; then
  START="yes"
fi

if [ "$XIM_PROGRAM" = "ibus" ]; then
  START="yes"
fi

if [ "$GTK_IM_MODULE" = "ibus" ]; then
  START="yes"
fi

if [ "$QT_IM_MOFULE" = "ibus" ]; then
  START="yes"
fi

if [ "$START" = "yes" ]; then
  if [ "$1" = "--plasma" ]; then
    ibus-daemon -drx --panel=/usr/libLIBDIRSUFFIX/kimpanel-ibus-panel
  else
    ibus-daemon -drx
  fi
fi