snapd in lubuntu

Alekseenko Vasilii vasilisc777 at gmail.com
Wed Jun 22 13:17:45 UTC 2016


Sorry for my English.

My first snap package is LanguageTool 3.4 (java app). I tested the snap 
only on my computer (Ubuntu 16.10 + Unity7). I upload snap into Ubuntu 
Store without a thorough test.

I create virtual machines (Xubuntu, Kubuntu, Ubuntu GNOME, Lubuntu, 
MATE) and only Lubuntu 16.04 displays an error.

URL screenshot http://itmages.ru/image/view/4456402/27529211

In Lubuntu 16.04 languagetool wants open file for write
/home/vasilisc/.config/LanguageTool/gui.state

BUT this impossible.

standard wrapper  command-languagetool.wrapper
--------------------------
#!/bin/sh
export PATH="$SNAP/bin:$SNAP/usr/bin:$PATH"
export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu"
export 
LD_LIBRARY_PATH="$SNAP/usr/lib/x86_64-linux-gnu/mesa:$LD_LIBRARY_PATH"
export JAVA_HOME=$SNAP/usr/lib/jvm/default-java
export 
PATH=$SNAP/usr/lib/jvm/default-java/bin:$SNAP/usr/lib/jvm/default-java/jre/bin:$PATH
export 
LD_LIBRARY_PATH="$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/bin/../lib/amd64/jli:$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/../lib/amd64/jli:$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64:$SNAP$SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/jli:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"

LD_LIBRARY_PATH=$SNAP_LIBRARY_PATH:$LD_LIBRARY_PATH
exec "$SNAP/usr/bin/run.sh" "$@"
--------------------------
Call my  run.sh

#!/bin/sh
# Not good, needed for fontconfig
export XDG_DATA_HOME=$SNAP/usr/share
# Font Config
export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d
export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf
export HOME=$SNAP_USER_DATA

java -jar -Duser.home=$SNAP_USER_DATA $SNAP/usr/bin/languagetool.jar
--------------------------

My run.sh define new HOME and user.home = $SNAP_USER_DATA

How can we explain this behavior Lubuntu (version snapd 2.0.8)?





More information about the Snapcraft mailing list