Skip to content

Commit 1f088ec

Browse files
committed
fixed grabbing .lnk path
1 parent 2b104c6 commit 1f088ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ for file in "$PROTON_SHORTCUTS_PATH"/*.desktop; do
798798
esac
799799

800800
# Unescape windows path
801-
_lnkpathlinux=$(PROTON_VERB=getnativepath umu_launch "$(printf '%s' "$_lnkpathwin" | sed 's/\\\\/\\/g; s/\\ / /g; s/\\\([^\\]\)/\1/g')" 2> /dev/null)
801+
_lnkpathlinux=$((PROTON_VERB=getnativepath umu_launch "$(printf '%s' "$_lnkpathwin" | sed 's/\\\\/\\/g; s/\\ / /g; s/\\\([^\\]\)/\1/g')") 2> /dev/null | head -n 1)
802802
# Get values from .lnk
803803
_lnk="$(parse_lnk "$_lnkpathlinux")"
804804
_lnk_exe=$(printf '%s' "$_lnk" | sed -n 's/LocalBasePath://p')

0 commit comments

Comments
 (0)