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

            Bug ID: 467369
           Summary: When creating a link to an application from the
                    desktop context menu, selecting the program path from
                    the browse dialogue doesn't work with spaces
    Classification: Plasma
           Product: plasmashell
           Version: 5.27.2
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: squad...@gmail.com
                CC: k...@davidedmundson.co.uk
  Target Milestone: 1.0

Created attachment 157288
  --> https://bugs.kde.org/attachment.cgi?id=157288&action=edit
Short video of the bug

SUMMARY
When creating a link to an application from the desktop context menu, selecting
the program path from the browse dialogue will produce a mess of escaped quotes
in the .desktop file

STEPS TO REPRODUCE
1. Right click on the desktop and navigate to Create New -> Link to Application 
2. Click over to the "Application" tab
3. Click the "Browse..." button to open the browse dialogue
4. Navigate to an application with a space character in the path and open it
5. The "Program:" field will now be populated with something like '/path/to/the
application/application'
6. Click OK

OBSERVED RESULT
The created .desktop file will now have a line like Exec=''\\''/path/to/the
application/application'\\'''

EXPECTED RESULT
The line being Exec='/path/to/the application/application'

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Tumbleweed 20230313
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

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

Reply via email to