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

            Bug ID: 451003
           Summary: Desktop files should be copied instead of symlinked
           Product: plasmashell
           Version: 5.24.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Application Launcher (Kickoff)
          Assignee: plasma-b...@kde.org
          Reporter: twilightinz...@gmail.com
                CC: mikel5...@gmail.com, noaha...@gmail.com
  Target Milestone: 1.0

SUMMARY
If you want to make an edit to a .desktop file for an application installed
system-wide, like via Flatpak, and attempt to do so via the right-click menu of
an application in Kickoff, a symlink to the .desktop file will be created in
`$XDG_DATA_HOME/applications` , and the file will be uneditable.

STEPS TO REPRODUCE
1. Right click on a Flatpak application in Kickoff
2. Click "Edit Application..."
3. Attempt to make edits to the application

OBSERVED RESULT
All attempted edits fail, because the file made in
`$XDG_DATA_HOME/applications`  is a **symlink** to a file that is not
user-writable.

EXPECTED RESULT
A **copy** of the file is made in `$XDG_DATA_HOME/applications`, and is thus
editable.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.24
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
The case that made me notice this was attempting to edit Spotify's launcher
after installing it via Discover; its default install method is system-wide. I
wanted to add `--force-device-scale-factor 1.25` to the command line args but
couldn't until I changed the symlink in `$XDG_DATA_HOME/applications` to an
actual copy.

Even if this is meant to somehow detect when the original .desktop files would
be user-editable, like for the user Flatpak installation, I believe it is
better to create a copy of the .desktop file so that changes are not lost on
updates. I don't want to be forced to redo edits to get my desired scaling back
every time Spotify updates.

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

Reply via email to