Bug 478662

Summary: Login scripts do not work if they are in a hidden directory or are a hidden file themselves
Product: [Plasma] plasmashell Reporter: Rune <rune.fritzsche>
Component: Startup processAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: justin, kde, nate, peter-mailbox
Priority: NOR    
Version First Reported In: 5.27.10   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rune 2023-12-17 19:26:43 UTC
Login scripts do not work if they are in a hidden directory or are a hidden file themselves. If such a file is added as a login script in settings, it does not appear there the next time settings are opened and the script is not executed upon login. 
The corresponding .desktop file in .config/autostart/ exists.

STEPS TO REPRODUCE
1. Set a hidden file or a file in a hidden directory as a login script
2. Log in

OBSERVED RESULT
The script is not executed and the settings do not show it in the autostart section.

EXPECTED RESULT
The script is executed and can be seen in the autostart section of the settings.

SOFTWARE/OS VERSIONS
Linux:  6.6.7-arch1-1 (64-bit)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Comment 1 Rune 2023-12-17 19:28:54 UTC
Edit: If the script is in a hidden directory, it is correctly shown in system settings, but does not work.
Comment 2 Justin Zobel 2024-09-11 13:13:21 UTC
Confirmed on git master

Hidden file e.g .test.sh does not run and does not show up after reopening settings
A file e.g test.sh in a hidden folder e.g ~/.test/ does work and does show up for me.