Bug 456332

Summary: Autostart Not Working when Delaying Start with 'Sleep' at Start of Command
Product: [Frameworks and Libraries] libplasma Reporter: adamska156
Component: libplasmaAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde, me, notmart
Priority: NOR    
Version First Reported In: 5.95.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description adamska156 2022-07-04 16:42:24 UTC
SUMMARY
I delay a couple of my apps starting up by placing a sleep command at the beginning of the startup command otherwise they startup too fast. This has worked for years, but after the recent update to Plasma 5.25 and Frameworks 5.95, the apps never start at all. Removing sleep from the beginning of the command causes them to properly start again, but I can't do the delayed start with it.


STEPS TO REPRODUCE
1. Add "sleep 10" to the beginning of a startup command in the Autostart settings menu
2. Logout and back in

OBSERVED RESULT
Notice that the app never starts at all anymore

EXPECTED RESULT
The app should start after a delay of 10 seconds like it did with earlier versions of Plasma and Frameworks.

SOFTWARE/OS VERSIONS
Linux: OpenSUSE Tumbleweed
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95
Qt Version: 5.15.5
Comment 1 David Edmundson 2022-07-04 22:14:29 UTC
If you've done

Exec=sleep 10 && someApp

that's an invalid entry as per the spec which is why it fails. We only now enforce it correctly.

Change to:

/bin/bash -c "command_1 ; command_2"