Bug 493907 - Properties dialog silently encloses arguments containing variables in quotations, breaking variable expansion
Summary: Properties dialog silently encloses arguments containing variables in quotati...
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Properties dialog (show other bugs)
Version: 6.5.0
Platform: Gentoo Packages Linux
: NOR minor
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-01 10:16 UTC by Steve Vialle
Modified: 2024-10-01 17:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Vialle 2024-10-01 10:16:57 UTC
SUMMARY
Using daemon+cdemu as an example:

Args entered in autostart kcm "application arguments" (.desktop file properties editor):
--bind --respawn --pidfiles=$XDG_RUNTIME_DIR --name=cdemu /usr/bin/cdemu-daemon

Displayed after closing/saving entry and reopening:
--bind --respawn '--pidfiles=$XDG_RUNTIME_DIR' --name=cdemu /usr/bin/cdemu-daemon

Resulting arguments from 'ps':
--bind --respawn --pidfiles=$XDG_RUNTIME_DIR --name=cdemu /usr/bin/cdemu-daemon

Manually edited .desktop file:
--bind --respawn --pidfiles=$XDG_RUNTIME_DIR --name=cdemu /usr/bin/cdemu-daemon

Resulting arguments from 'ps':
--bind --respawn --pidfiles=/run/user/1004 --name=cdemu /usr/bin/cdemu-daemon

STEPS TO REPRODUCE
1. Add an argument containing a variable expansion to an autostart .desktop file using the properties editor in the autostart kcm.
2. Observe generated .desktop file and resulting command-line executed during plasma startup.

OBSERVED RESULT
.desktop properties editor silently adds single quotes when saving file.

EXPECTED RESULT
.desktop properties editor does what I tell it to, and doesn't silently "correct" arguments containing variable expansions.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.6.51-gentoo-dist (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION