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

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Mon Jan 22 15:10:19 CET 2018


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

            Bug ID: 14187
           Summary: Exec in ~/.config/autostart/*.desktop doesn't support
                    commands with arguments
    Classification: Xfce Core
           Product: Xfce4-session
           Version: 4.12.0
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
          Assignee: xfce-bugs at xfce.org
          Reporter: albert.netymk at gmail.com
                CC: benny at xfce.org, nick at xfce.org
  Target Milestone: Xfce 4.12

The content of `keyboard.desktop` is shown below:

```
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=colemak keyboard
Comment=
Exec=bash /home/albert/bin/colemak.sh
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=true
Hidden=false

```

Extract the core logic from
https://git.xfce.org/xfce/xfce4-session/tree/scripts/xinitrc.in.in#n162, and
run it in a shell:

```shell
$ cmd=`grep -E "^Exec=" keyboard.desktop | cut -d'=' -f2`; test "$cmd" && which
"$cmd" ; echo $?
1
```

I suppose the spec is
https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html,
and it states that passing arguments are supported.

(Surely, I can work around this problem by dropping the preceding `bash`.)

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


More information about the Xfce-bugs mailing list