Commit 1a1d78ad authored by 林博仁(Buo-ren, Lin)'s avatar 林博仁(Buo-ren, Lin) Committed by Patrick Storz

Snap: Fix file loading with path with spaces

Currently the inkscape snap is unable to load file with path with
spaces when opening such files by double clicking them in the file
manager(loading them via the file open dialog works).

This is probably due to the fact that the launcher doesn't quote the
expansion of the `@` special parameter and thus all `word`s in the file
path are applied with word separation.  This patch fixes the syntax.

Fixes Launchpad Bug #1735453.

Refer-to: Bug #1735453 “Cannot open files with whitespaces/spaces in pathn...” : Bugs : Inkscape <https://bugs.launchpad.net/inkscape/+bug/1735453>
Refer-to: bash(1) - Parameters - Special Parameters - @
Signed-off-by: 林博仁(Buo-ren, Lin)'s avatar林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
(cherry picked from commit 82b832e7)
parent f8dce91b
Pipeline #76178810 passed with stages
in 10 minutes and 22 seconds
......@@ -20,4 +20,4 @@ if [ -d "/home/${USER}" ]; then
export HOME="/home/${USER}"
fi
exec $@
exec "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment