Bug 403345 - autostart does not honor "Path" indication
Summary: autostart does not honor "Path" indication
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Startup process (show other bugs)
Version: 5.27.5
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: 1.0
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-18 08:07 UTC by Arrigo Marchiori
Modified: 2023-05-17 15:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Sample script that uses xmessage to display $PWD (25 bytes, application/x-shellscript)
2019-01-18 08:07 UTC, Arrigo Marchiori
Details
Sample .desktop file to place in ~/.config/autostart (235 bytes, application/x-desktop)
2019-01-18 08:08 UTC, Arrigo Marchiori
Details

Note You need to log in before you can comment on or make changes to this bug.
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.