From 8e5e6cd41de55a053e5e93d708b8973c5ceff9de Mon Sep 17 00:00:00 2001 From: Roman Demidov Date: Sat, 12 Jun 2021 11:07:18 +0300 Subject: [PATCH] Exclude excess warnings and errors from output (#50) --- bin/run-desktopeditors.sh | 7 ++++++- snapcraft.yaml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/run-desktopeditors.sh b/bin/run-desktopeditors.sh index abf4d4a..6ac59a6 100755 --- a/bin/run-desktopeditors.sh +++ b/bin/run-desktopeditors.sh @@ -89,7 +89,7 @@ GS_SCHEMA_DIR=$XDG_DATA_HOME/glib-2.0/schemas if [ ! -d $GS_SCHEMA_DIR ]; then mkdir -p $GS_SCHEMA_DIR for d in "${data_dirs_array[@]}"; do - ln -s $d/glib-2.0/schemas/*.xml $GS_SCHEMA_DIR + ln -sf $d/glib-2.0/schemas/*.xml $GS_SCHEMA_DIR done $SNAP/usr/lib/$ARCH/glib-2.0/glib-compile-schemas $GS_SCHEMA_DIR @@ -97,6 +97,11 @@ fi export LC_ALL=C.UTF-8 +# Create $XDG_RUNTIME_DIR if it doesn't exist +if [ ! -d "$XDG_RUNTIME_DIR" ]; then + mkdir -p $XDG_RUNTIME_DIR -m 700 +fi + # Icon themes cache #if [ ! -d $XDG_DATA_HOME/icons ]; then # mkdir -p $XDG_DATA_HOME/icons diff --git a/snapcraft.yaml b/snapcraft.yaml index a321dc5..062ee2e 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -14,6 +14,8 @@ layout: bind: $SNAP/usr/bin /usr/lib/x86_64-linux-gnu: bind: $SNAP/usr/lib/x86_64-linux-gnu + /etc/fonts: + bind: $SNAP/etc/fonts apps: onlyoffice-desktopeditors: