summaryrefslogtreecommitdiff
path: root/misc/ibus/ibus-autostart
blob: 29fab3a05054c03e9cf563f90a207be6a5555e52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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
  ibus-daemon -drx
fi