| Summary: |
When the user asks to modify a desktop file that's a symlink to one in a non-writable location, make a writable copy of it in place and then modify that |
| Product: |
[Frameworks and Libraries] frameworks-kio
|
Reporter: |
Stefan Hamminga <stefan> |
| Component: |
Properties dialog | Assignee: |
KIO Bugs <kio-bugs-null> |
| Status: |
RESOLVED
DUPLICATE
|
|
|
| Severity: |
wishlist
|
CC: |
ashark, kdelibs-bugs-null, nate, notmart
|
| Priority: |
NOR
|
Keywords: |
usability |
| Version First Reported In: |
unspecified | |
|
| Target Milestone: |
--- | |
|
| Platform: |
Other | |
|
| OS: |
Linux | |
|
|
Latest Commit:
|
|
Version Fixed/Implemented In:
|
|
|
Sentry Crash Report:
|
|
| |
SUMMARY When adding a program to the desktop from the global menu the resulting desktop 'shortcut' is a symlink to the desktop file in /usr. A regular user cannot modify this file so any attempt to set -for example- arguments in the properties menu of the desktop item will result in a permission error. STEPS TO REPRODUCE 1. Open global menu 2. Locate any application 3. Right-click application entry 4. Click 'Add to Desktop' 5. Right-click new desktop icon 6. Click 'Properties' 7. Click the 'Application' tab 8. Type some argument in the 'Arguments' box 9. Click 'Ok' OBSERVED RESULT Pop-up box with an error message stating insufficient write access to `/home/${USER}/Desktop/${application}.desktop` file. (which is actually a symlink). EXPECTED RESULT Successfully updating the application properties for _this_ user. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.26.3 Arch Linux 64-bit as of 2022-11-17 ADDITIONAL INFORMATION Proposed solutions: (A) Use an 'overlay' concept similar to how systemd solves this or (B) Copy-on-write: As soon as the file is modified create a local copy