https://bugs.kde.org/show_bug.cgi?id=515148
Bug ID: 515148
Summary: Desktop icons do not always refresh after symlink
target change and touch
Classification: Plasma
Product: plasmashell
Version First 6.5.5
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: Desktop icons & Folder View widget
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: 1.0
## SUMMARY
If the Desktop folder found at `~/Desktop` is replaced with a symlink an issue
arises when changing the target of that symlink after plasmashell initializes.
If the target of the symlink is changed to another folder, the contents / icons
displayed on the user's desktop will not update without manually refreshing via
F5 even if the target is touched.
If the symlink target is changed back to the folder it was set to during
startup then the desktop icons will refresh on their own if the target is
touched.
## STEPS TO REPRODUCE
1. Rename the `~/Desktop` folder to something like `Desktop1`
2. Make a symlink targeting `Desktop1` called Desktop
3. Restart plasmashell `plasmashell --replace`
4. Change the symlink target to any other folder
5. Touch the link's target and see that manual F5 is needed
6. Set the symlink back to the original target (`Desktop1`)
7. Touch `Desktop1` and see the automatic refresh occur
```bash
target=$(readlink -f $HOME/Desktop)
if [ "$target" = "${HOME}/Desktop1" ]; then
ln -sfn $HOME/Desktop2 $HOME/Desktop
else
ln -sfn $HOME/Desktop1 $HOME/Desktop
fi
touch $HOME/Desktop/
```
The above script demonstrates this if you have the folders `Desktop1` and
`Desktop2` created under `~` and the original `Desktop` folder is not present.
## OBSERVED RESULT
The refresh of desktop icons is only triggered when targeting and touching the
original target. If the current target of the symlink is not the original
target then touching it will not refresh the desktop icons. Seems as though the
watcher is still watching for changes on the old directory despite it no longer
being displayed on the desktop.
## EXPECTED RESULT
The target of the symlink should we watched such that the changes to it are
reflected on the desktop.
## SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3070
## Additional Information
When the target of the symlink is not the same as the directory during startup,
refreshing of the desktop can still be triggered by touching the original
target despite it nolonger being linked to.
--
You are receiving this mail because:
You are watching all bug changes.