Summary: | Can't edit applications that are installed through flatpak | ||
---|---|---|---|
Product: | [Applications] kmenuedit | Reporter: | Peter Eszlari <peter.eszlari> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | aleixpol, bugseforuns, code, herzenschein, john.kizer, kdedev, michele.mazza, nate, nicolas.fella, opendreas, plasma-bugs, rosswzyang, tduck973564 |
Priority: | NOR | ||
Version: | 5.23.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=450727 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | screenshot |
Description
Peter Eszlari
2018-05-20 14:17:46 UTC
Created attachment 114826 [details]
screenshot
Same bug on Arch Linux, plasma 5.13.5.
The problem is this: Editing a .desktop file in /usr/share/applications wouln't work because of insufficient permissions. Therefore when the user tries to edit such a file a copy is created in .local/share/applications that takes precedence over the one in /usr. Editing a .desktop file in .local/share/applications works and therefore it will be edited directly. In the flatpak case where .local/share/foo.desktop is a symlink to another desktop file Kicker thinks the desktop file is editable by the user, but the actual symlink target is not (because of insufficient permission) and editing fails *** Bug 443477 has been marked as a duplicate of this bug. *** I can reproduce this bug even with some non-flatpak apps. Discord from Arch repos, for example. Operating System: Arch Linux KDE Plasma Version: 5.23.0 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.2 Graphics Platform: Wayland In the meantime, for those looking for a workaround, you can simply install your flatpak repositories with the --user flag, e.g. flatpak remote-add --user flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo This way sudo isn't needed to install applications, they are installed in userspace (~/.local/share/flatpak/exports/share/applications/ would include symlinks to ~/.local/share/flatpak/app/), and editing the .desktop launchers works as intended since there are sufficient permissions. (In reply to Patrick Silva from comment #4) > I can reproduce this bug even with some non-flatpak apps. > Discord from Arch repos, for example. The bug is similar, but, according to the screenshot by Patrick Silva, the source of the problem is different. With Flatpak (current issue), there's already a file at `~/.local/share/applications/whatever.desktop`. The Discord case is a bit different. It has a symlink in system-wide directory instead: $ ls -lh /usr/share/applications/discord.desktop lrwxrwxrwx 1 root root 28 фев 18 13:34 /usr/share/applications/discord.desktop -> /opt/discord/discord.desktop I've created a separate bug for this: https://bugs.kde.org/show_bug.cgi?id=450727 I'll also attach a merge request that potentially fixes this issue there. P.S. Sorry if I don't understand some concepts of Flatpaks correctly, as I don't actually use them. *** Bug 466875 has been marked as a duplicate of this bug. *** In the case of this that I've seen on my PC, there actually is not already a file at ~/.local/share/applications, but the process of trying to edit the application menu item then creates a broken link attempting to reach the target file (in addition to the error already described here):
After trying to edit the menu item:
> johnkizer@g717-fedora:~$ ll .local/share/applications/
> ...
> lrwxrwxrwx. 1 johnkizer johnkizer 119 Nov 1 12:42 org.nickvision.tubeconverter.desktop -> > ../../../app/org.nickvision.tubeconverter/current/active/export/share/applications/org.nickvision.tubeconverter.desktop
> ...
The path shown there, according to the properties dialog, tries to resolve to /home/johnkizer/app/org.nickvision.tubeconverter/current/active/export/share/applications/org.nickvision.tubeconverter.desktop, which doesn't exist - not yet sure what's going on there.
|