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

            Bug ID: 450727
           Summary: Can't edit an application's desktop entry which is a
                    symlink
           Product: frameworks-kio
           Version: git master
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Properties dialog
          Assignee: kio-bugs-n...@kde.org
          Reporter: c...@nic11.xyz
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

Created attachment 147067
  --> https://bugs.kde.org/attachment.cgi?id=147067&action=edit
Error when trying to change Discord's desktop entry

SUMMARY
If user tries to edit a desktop entry in /usr/share/applications that is a
symlink to some file without write access, this results in an error.


STEPS TO REPRODUCE
1. Install a package that contains a symlink from /usr/share/applications. For
example, Discord package on Arch/Manjaro: `pacman -S discord`
2. Open Application Launcher
3. Right-click on an app installed on step 1, select 'Edit application'
4. Change something and click 'Save'

OBSERVED RESULT
Error:
Could not save properties due to insufficient write access to:
‘/home/roma/.local/share/applications/discord.desktop’.

~/.local/share/applications/discord.desktop is a symlink to
/opt/discord/discord.desktop.

EXPECTED RESULT
~/.local/share/applications/discord.desktop is successfully saved and is an
arbitrary file owned by the current user.

SOFTWARE/OS VERSIONS
Linux distro: Manjaro stable
KDE Plasma Version: 5.23.5, master
KDE Frameworks Version: 5.90.0, master
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Similar bug: https://bugs.kde.org/show_bug.cgi?id=394476
But it needs to be resolved separately IMO, since it involves editing a file
that's already in `~/.local/share/applications/` but is unwriteable for the
current user.

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

Reply via email to