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
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.