[Xfce-bugs] [Bug 14187] Exec in ~/.config/autostart/*.desktop doesn't support commands with arguments

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sun May 5 13:44:44 CEST 2019


https://bugzilla.xfce.org/show_bug.cgi?id=14187

--- Comment #3 from Theo Linkspfeifer <lastonestanding at tutanota.com> ---
After reading the bug description again I understand now that the issue is in
the fallback code. Proposed fix:

cmd=`grep -E "^Exec=" "$i" | cut -d'=' -f2`
cmd_noargs=`echo "$cmd" | cut -d' ' -f1`
if test "$cmd_noargs" && which "$cmd_noargs" >/dev/null 2>&1; then
  $cmd &
fi

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list