Skip to content

Commit

Permalink
Setup immodules cache and stage required packages to fix #57
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Murray <[email protected]>
  • Loading branch information
alexmurray committed May 26, 2023
1 parent 8cdd708 commit 3ed058e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup-env
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ cp "$SNAP/etc/fonts/fonts.conf" "$FONTCONFIG_FILE"
# fontconfig - so replace *all* with ours
sed -i "s|<cachedir.*/cachedir>|<cachedir>$FONTCONFIG_CACHE_DIR</cachedir>|" "$FONTCONFIG_FILE"

# immodule cache
GTK_IM_MODULE_DIR="$GDK_CACHE_DIR/immodules"
[ ! -d "$GTK_IM_MODULE_DIR" ] && mkdir -p "$GTK_IM_MODULE_DIR"

export GTK_IM_MODULE_FILE="$GTK_IM_MODULE_DIR/immodules.cache"
if [ -f "$SNAP/usr/lib/$ARCH/libgtk-3-0/gtk-query-immodules-3.0" ]; then
"$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"
fi

# native comp needs to find as etc and this comes from within the snap
# itself
export PATH="$PATH:/snap/emacs/current/usr/bin"
Expand Down
2 changes: 2 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ parts:
- gcc-10 # for tree-sitter
- g++-10 # for tree-sitter
- gvfs
- ibus-gtk3
- libasound2
- libaspell15
- libasyncns0
Expand Down Expand Up @@ -155,6 +156,7 @@ parts:
- libharfbuzz-icu0
- libharfbuzz0b
- libhyphen0
- libibus-1.0-5
- libice6
- libicu66
- libisl22
Expand Down

0 comments on commit 3ed058e

Please sign in to comment.