~ubuntu-desktop/+junk/ghexudt

1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# generate the locale definition for the current language
export I18NPATH=$SNAP/usr/share/i18n
export LOCPATH=$SNAP_USER_DATA/.local/share/locale
if [ ! -d $LOCPATH ]; then
    mkdir $LOCPATH
fi
if [ ! -d $LOCPATH/$LANG ]; then
    $SNAP/usr/bin/localedef -f UTF-8 -i $(echo $LANG | cut -d. -f1) $LOCPATH/$LANG
fi

exec $SNAP/usr/bin/ghex