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

            Bug ID: 522272
           Summary: Quote and space handling in KDE Menu editor
    Classification: Applications
           Product: kmenuedit
      Version First unspecified
       Reported In:
          Platform: KDE Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
The KDE Menu Editor can easily break .desktop files if they have spaces in the
executable path

STEPS TO REPRODUCE
1. Create a new item in the KDE Menu Editor
2. Fill the "program" field by browsing for an executable that has a space in
the file path
3. The executable path should now have single quotes around it added by the
menu editor
4. Click save
5. Refresh the item by clicking another item and then back
6. The single quotes have now disappeared
7. Make an edit on the item, for example fill the "comment" field
8. Refresh the item again
9. The part after the space in the executable path gets moved to the
"command-line arguments" field and the .desktop file no longer works

OBSERVED RESULT
The .desktop file executable path gets split in two

EXPECTED RESULT
The .desktop file executable path should stay intact

SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2026-06-23
KDE Plasma Version: 6.7.80
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1

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

Reply via email to