Bug 28547 - System Settings Autostart creates links in ~/.config/autostart-scripts instead of ~/.config/plasma-workspace/env
Summary: System Settings Autostart creates links in ~/.config/autostart-scripts instea...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: KDE maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-07 13:22 CET by Brian Kimerer
Modified: 2021-03-07 23:47 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.