wrong working directory on autostart .desktop files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
At desktop startup, .desktop files located at ~/.config/autostart are started with wrong working directory.
When Exec=... comand is started in ~/ working directory should be the one specified in Path=... key of .desktop file.
Instead, at desktop startup, Exec= command is started at ~/ as working directory.
How to reproduce the bug:
Foo.desktop contents
[Desktop Entry]
Version=1.0
Type=Application
Name=Foo
Comment=
Path=/home/
Exec=bash -c "pwd && while true; do sleep 100; done"
Icon=
Terminal=true
StartupNotify=false
When destop starts up, ~/.config/
Output in terminal of pwd command is:
/home/adrian
Instead of /home/pi/Downloads as it should be by specified key Path=/home/
Bug does not happin if after desktop is up and running, you manually launch foo.desktop, which shows: /home/pi/Downloads as it should be.
This same bug happens on Raspbian and in Xubuntu 16.04
Any other Exec=command that is depending on working directory shows the same issue, just used this simplest example to enable anyone to reproduce the bug. Hope it helps.
Thanks.