Fix icons lost off desktop when update
After updating Easy to 5.2.2, a few people reported icons getting
lost, and changes to "default applications" getting lost. For example:
https://forum.puppylinux.com/viewtopic.php?p=87197#p87197
I also experienced this. The problem has existed before, but has
become more prevalent as we are creating icons on the desktop for
installed AppImages and Flatpaks.
I think that I see where the problem is, in the initrd. There is code
that cleans up the desktop either when the SFS layers change on the
main desktop, or there is a version update. Any icon no longer required
is removed, but I think the code is being overly enthusiastic.
The code is complicated, so for now have just commented it out. After
all, it would be better to err the other way, have a not-needed icon
left on the desktop, rather then needed icons removed. Here is the
commit:
https://github.com/bkauler/woofq/commit/792e29aece79855a389e797a2612c3e12c168136
I have left the code in, just commented-out, as plan to revisit it sometime in the future.
Tags: easy