Bug 403345

Summary: autostart does not honor "Path" indication
Product: [Plasma] plasmashell Reporter: Arrigo Marchiori <ardovm>
Component: Startup processAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: CONFIRMED ---    
Severity: normal CC: kde, kde, nate
Priority: NOR    
Version: 5.27.5   
Target Milestone: 1.0   
Platform: FreeBSD Ports   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Sample script that uses xmessage to display $PWD
Sample .desktop file to place in ~/.config/autostart

Description Arrigo Marchiori 2019-01-18 08:07:02 UTC
Created attachment 117527 [details]
Sample script that uses xmessage to display $PWD

SUMMARY
.desktop files can contain a `Path' line, that indicates the working directory for the program to be run.

When a .desktop file is found in the .autostart directory it is executed, but its `Path' line is ignored.
If the same file is opened with Dolphin, the `Path' line is honored.

STEPS TO REPRODUCE
1. install a sample .desktop file, that sets the `Path' to something other than $HOME and shows $PWD
2. restart KDE

OBSERVED RESULT
The sample program shows that $PWD is $HOME, but it should be otherwise.

SOFTWARE/OS VERSIONS
FreeBSD 11.2-STABLE r342844
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.53.0
Qt Version: 5.12.0

FreeBSD port plasma5-plasma-5.14.4
Comment 1 Arrigo Marchiori 2019-01-18 08:08:38 UTC
Created attachment 117528 [details]
Sample .desktop file to place in ~/.config/autostart

This .desktop file starts ~/autostart_test.sh (attached to this bug) setting the path to /etc.