Bug 28547

Summary: System Settings Autostart creates links in ~/.config/autostart-scripts instead of ~/.config/plasma-workspace/env
Product: Mageia Reporter: Brian Kimerer <briankimerer>
Component: RPM PackagesAssignee: KDE maintainers <kde>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: doktor5000, rolfpedersen
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Brian Kimerer 2021-03-07 13:22:51 CET
Description of problem:

I added some scripts into Autostart to run at login using the System Settings tool. When I log in, the scripts do not run.

Version-Release number of selected component (if applicable):


How reproducible:

Always

Steps to Reproduce:
1. Add a script to Autostart using the System Settings tool
2. Log out
3. Log in

The scripts do not run at login.

After some investigation, I discovered that the System Settings tool is creating links to the scripts in ~/.config/autostart-scripts, but Plasma is looking for scripts to run in ~/.config/plasma-workspace/env

If I manually create the links in ~/.config/plasma-workspace/env, the scripts run as expected.
Florian Hubold 2021-03-07 14:11:37 CET

CC: (none) => doktor5000

Comment 1 Brian Kimerer 2021-03-07 14:51:39 CET
FYI just an additional comment for anyone who looks at this, Plasma now ignores any scripts that do not end in the suffix ".sh" according to the document at 

https://docs.kde.org/trunk5/en/kde-workspace/kcontrol/autostart/

and also according to my testing. 

This not part of this bug, but it is a change to take into account if one is looking into this.
Rolf Pedersen 2021-03-07 17:18:39 CET

CC: (none) => rolfpedersen

Comment 2 Lewis Smith 2021-03-07 21:09:21 CET
Thank you Brian both for the report of the fault; and your diagnosis which should aid a speedy correction.

Assigning to the KDE team.

Assignee: bugsquad => kde

Comment 3 Brian Kimerer 2021-03-07 23:47:43 CET
For completeness, I added a script to Logout Scripts using System Settings, and that link appears to be written to the correct directory, ~/.config/plasma-workspace/shutdown.