Bug 451734

Summary: Plasma is unable to autostart programs with a space in the path
Product: [Plasma] plasmashell Reporter: Siddhartha <kde>
Component: Startup processAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Siddhartha 2022-03-20 18:42:57 UTC
SUMMARY
One of my autostart application has the following line in its .desktop:

Exec="/opt/Mullvad VPN/mullvad-vpn" %U

This leads to Plasma unable to execute this on startup. In the logs, I see:

systemd[1869]: app-mullvad\x2dvpn@autostart.service: Failed at step EXEC spawning /opt/Mullvad: No such file or directory

It seems the quoted path is not being parsed properly when auto generating the systemd startup service.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.16.15-arch1-1 (64-bit)
Comment 1 David Edmundson 2022-03-22 23:36:20 UTC
https://github.com/systemd/systemd/pull/22831
Comment 2 Siddhartha 2022-03-23 02:40:37 UTC
Thanks David!