Bug 486376

Summary: When system shortcuts are linked files, copy the source shortcuts, not the link files.
Product: [Plasma] plasmashell Reporter: Sin Jeong-hun <typingcat>
Component: Application Launcher (Kickoff)Assignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mikel5764, nate, noahadvs
Priority: NOR    
Version: 6.0.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: libre system shortcuts

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 ***