https://bugs.kde.org/show_bug.cgi?id=493907

            Bug ID: 493907
           Summary: Autostart KCM silently encloses arguments containing
                    variables in quotations, breaking variable expansion
    Classification: Applications
           Product: systemsettings
           Version: 6.1.5
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_autostart
          Assignee: plasma-b...@kde.org
          Reporter: stev...@runbox.com
                CC: nicolas.fe...@gmx.de
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to