File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -764,9 +764,9 @@ for file in "$PROTON_SHORTCUTS_PATH"/*.desktop; do
764
764
_lnkpathlinux=$( PROTON_VERB=getnativepath umu_launch " $( printf ' %s' " $_lnkpathwin " | sed ' s/\\\\/\\/g; s/\\ / /g; s/\\\([^\\]\)/\1/g' ) " 2> /dev/null)
765
765
# Get values from .lnk
766
766
_lnk=" $( parse_lnk " $_lnkpathlinux " ) "
767
- _lnk_exe=$( printf ' %s' " $_lnk " | awk ' sub(/^ LocalBasePath:/,"") ' )
768
- _lnk_workingdir=$( printf ' %s' " $_lnk " | awk ' sub(/^ WORKING_DIR:/,"") ' )
769
- _lnk_args=$( printf ' %s' " $_lnk " | awk ' sub(/^ COMMAND_LINE_ARGUMENTS:/,"") ' )
767
+ _lnk_exe=$( printf ' %s' " $_lnk " | sed -n ' s/ LocalBasePath://p ' )
768
+ _lnk_workingdir=$( printf ' %s' " $_lnk " | sed -n ' s/ WORKING_DIR://p ' )
769
+ _lnk_args=$( printf ' %s' " $_lnk " | sed -n ' s/ COMMAND_LINE_ARGUMENTS://p ' )
770
770
771
771
# Get absolute path to largest icon
772
772
_iconpath=" $PROTON_SHORTCUTS_PATH /icons/$( find " $PROTON_SHORTCUTS_PATH /icons" -type f -name " *$_iconname .png" -printf ' %P\n' | sort -n -tx -k1 -r | head -n 1) "
You can’t perform that action at this time.
0 commit comments