Skip to content

Commit

Permalink
Merge pull request #104 from oSoMoN/ibus-ootb
Browse files Browse the repository at this point in the history
Add missing stage packages and copy ibus socket files to enable ibus for GTK3 applications out-of-the-box.
  • Loading branch information
kenvandine committed Mar 29, 2018
2 parents a3de480 + 5a0be4e commit 341da42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gtk/launcher-specific
Expand Up @@ -12,8 +12,6 @@ else
fi

# ibus and fcitx integration
# with those definitions fcitx works unconfined out of the box, ibus requires
# user config to be copied though, https://launchpad.net/bugs/1580463
GTK_IM_MODULE_DIR=$XDG_CACHE_HOME/immodules
export GTK_IM_MODULE_FILE=$GTK_IM_MODULE_DIR/immodules.cache
if [ $needs_update = true ]; then
Expand All @@ -27,4 +25,10 @@ if [ $needs_update = true ]; then
$RUNTIME/usr/lib/$ARCH/libgtk2.0-0/gtk-query-immodules-2.0 > $GTK_IM_MODULE_FILE
fi
fi
# create symbolic link to ibus socket path for ibus to look up its socket files
# (see comments #3 and #6 on https://launchpad.net/bugs/1580463)
IBUS_CONFIG_PATH=$XDG_CONFIG_HOME/ibus
mkdir -p $IBUS_CONFIG_PATH
[ -d $IBUS_CONFIG_PATH/bus ] && rm -rf $IBUS_CONFIG_PATH/bus
ln -sfn $REALHOME/.config/ibus/bus $IBUS_CONFIG_PATH

2 changes: 2 additions & 0 deletions snapcraft.yaml
Expand Up @@ -99,6 +99,8 @@ parts:
- libappindicator3-1
- locales-all
- xdg-user-dirs
- ibus-gtk3
- libibus-1.0-5
qt4:
source: .
source-subdir: qt
Expand Down

0 comments on commit 341da42

Please sign in to comment.