Skip to content

Commit d030725

Browse files
committed
Setup immodules cache and stage required packages to fix alexmurray#57
Signed-off-by: Alex Murray <[email protected]>
1 parent 34c90cc commit d030725

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

setup-env

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ cp "$SNAP/etc/fonts/fonts.conf" "$FONTCONFIG_FILE"
3939
# fontconfig - so replace *all* with ours
4040
sed -i "s|<cachedir.*/cachedir>|<cachedir>$FONTCONFIG_CACHE_DIR</cachedir>|" "$FONTCONFIG_FILE"
4141

42+
# immodule cache
43+
GTK_IM_MODULE_DIR="$GDK_CACHE_DIR/immodules"
44+
[ ! -d "$GTK_IM_MODULE_DIR" ] && mkdir -p "$GTK_IM_MODULE_DIR"
45+
46+
export GTK_IM_MODULE_FILE="$GTK_IM_MODULE_DIR/immodules.cache"
47+
if [ -f "$SNAP/usr/lib/$ARCH/libgtk-3-0/gtk-query-immodules-3.0" ]; then
48+
"$SNAP/usr/lib/$ARCH/libgtk-3-0/gtk-query-immodules-3.0" "$SNAP/usr/lib/$ARCH/gtk-3.0/3.0.0/immodules/"im-*.so > "$GTK_IM_MODULE_FILE"
49+
fi
50+
4251
# native comp needs to find as etc and this comes from within the snap
4352
# itself
4453
export PATH="$PATH:/snap/emacs/current/usr/bin"

snapcraft.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ parts:
9696
- zlib1g-dev
9797
stage-packages:
9898
- gvfs
99+
- ibus-gtk3
99100
- libasound2
100101
- libaspell15
101102
- libasyncns0
@@ -138,6 +139,7 @@ parts:
138139
- libharfbuzz-icu0
139140
- libharfbuzz0b
140141
- libhyphen0
142+
- libibus-1.0-5
141143
- libice6
142144
- libicu66
143145
- libisl22

0 commit comments

Comments
 (0)