Bug 486376 - When system shortcuts are linked files, copy the source shortcuts, not the link files.
Summary: When system shortcuts are linked files, copy the source shortcuts, not the li...
Status: RESOLVED DUPLICATE of bug 450727
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) (show other bugs)
Version: 6.0.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-01 03:02 UTC by Sin Jeong-hun
Modified: 2024-05-14 23:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
libre system shortcuts (137.79 KB, image/png)
2024-05-01 03:02 UTC, Sin Jeong-hun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sin Jeong-hun 2024-05-01 03:02:21 UTC
Created attachment 169057 [details]
libre system shortcuts

SUMMARY
I tried to modify LibreOffice Writer shortcut (adding environment), but it showed permission error. "Could not save properties due to insufficient access to: /home/me/.local/share/applications/libre...desktop". That was weird, because it is under my home directory. I wend to that directory, and found that the .desktop file's owner is "root".

It seems that LibreOffice shortcuts in "/usr/share/applications/" are, unlike others, linked files to "/usr/lib/libreoffice/share/xdg/....desktop", and Kickoff copies the link file to user's directory, not the source file of the file, which means that the copied link file in the user's directory points to the shortcut in the system directory that is owned by "root".

It should copy the original ".desktop" file to the user's directory, not the link.

STEPS TO REPRODUCE
1. Arch Linux, install libreoffice-fresh from the "extra" repository.
2. In the menu, right click Writer, and try to change it and save it.
3. 

OBSERVED RESULT
Could not save properties due to insufficient access

EXPECTED RESULT
Save a copy in the local "applications" directory.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 6.8.8
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-05-14 23:24:35 UTC

*** This bug has been marked as a duplicate of bug 450727 ***