Public bug reported:
Using Xubuntu 16.04
At desktop startup, .desktop files located at ~/.config/autostart are started
with wrong working directory.
How to reproduce the bug:
Foo.desktop contents
[Desktop Entry]
Version=1.0
Type=Application
Name=Foo
Comment=
Path=/home/adrian/Downloads
Exec=bash -c "pwd && while true; do sleep 100; done"
Icon=
Terminal=true
StartupNotify=false
When destop starts up, ~/.config/autostart/Foo.desktop is launched.
Output in terminal of pwd command is:
/home/adrian
It should be instead:
/home/adrian/Downloads
Bug does not happen if after desktop is up and running, you manually launch
foo.desktop, which shows:
/home/adrian/Downloads
as it should be.
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.
** Affects: ubuntu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1787402
Title:
wrong working directory on autostart .desktop files
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1787402/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs