Open ddennedy opened 6 years ago
These all seem to be unsanitized word splitting errors, which should be mostly fixed by PR #123 and #129
As an update, upon updating my snap July 1 and then again August 1, I still see messages desktop-launch: line 207: [: too many arguments
at snap launch. However, the snap runs without having to remove my weird nfs mounts unlike before.
Probably here:
# If we aren't creating new links, check if we have content saved in old locations and move it
for d in DOCUMENTS DESKTOP DOWNLOAD MUSIC PICTURES VIDEOS PUBLICSHARE TEMPLATES; do
old=`eval "$(echo "echo \\$OLD_XDG_${d}_DIR")"`
new=`eval "$(echo "echo \\$XDG_${d}_DIR")"`
if [ -L "$old" ] && [ -d "$new" ] && [ `readlink "$old"` != "$new" ]; then
mv "$old"/* "$new"/ 2>/dev/null
elif [ -d "$old" ] && [ -d "$new" ] && [ "$old" != "$new" ]; then
mv "$old"/* "$new"/ 2>/dev/null
fi
done
However the eval operation is risky so I still don't know how to deal with this as of now.
Today, I was updating my snap and testing it before publishing it. I got the error when trying to run it:
Upon reverting to the previous version of the app (snap revert), it works. I see bin/desktop-launch did change between versions. Next, I moved /home/ddennedy/.config/user-dirs.locale out of the way and tried again. This time I got:
I have some interesting mounts on this machine. I have these NFS mounts:
Yes, I know it is a strange, abnormal setup. :-/ Next, I unmounted those NFS shares, and I get the following, which is fine with me:
Just thought I'd share this in case you want to try to work around weird setups.