Opened 11 years ago

Last modified 4 years ago

#10158 assigned bug

Broken-link icon not updated when "unbroken"

Reported by: humdinger Owned by: nobody
Priority: normal Milestone: R1.1
Component: Applications/Tracker Version: R1/Development
Keywords: Cc: dsuden
Blocked By: Blocking:
Platform: All

Description

This is hrev46288.

  • Install some package
  • Create a link to the installed app on e.g. Desktop
  • Move the package out of the packages folder (=deactivate) -> Link on Desktop shows broken link
  • Move the package back in (=activate) -> Link on Desktop still shows broken link

The icon will only update to the "un-broken" app's icon after copying any file to the Desktop or if you create a new file/folder.

Might that be distantly related to #7648?

Change History (6)

comment:1 by dsuden, 9 years ago

This is still an issue...we run into it daily as we update packages here.

comment:2 by dsuden, 9 years ago

Admin, could you please CC me to this ticket so I can find it in future?

comment:3 by humdinger, 9 years ago

Cc: dsuden added

comment:4 by ttcoder, 9 years ago

Might be a 'missing feature' rather than a bug (technically)

When a symlink exists, it's of course possible to node-monitor its target, but once the target disappears you can no longer node-monitor anything directly.. Or maybe one could come up with a scheme where you monitor the /parent directory/ of the temporarily defunct target, watching for the target's re-appearance.. That would make for complicated code.. But would look behaviorally perfect on screen: target re-appears, icon "un breaks", sha-zam.

Other than that, maybe a stop-gap measure would be satisfying to users, like checking for the target when the broken icon is left /clicked/.. After all, there does seem to be stop-gap measures in place already: for example if a new file is created on desktop, all other icons (not just the newly created file) are checked, possibly resulting in an un-breaking of the broken symlink icon.

Disclaimer: I didn't look at Tracker source code.. But the bug/behavior is reproducible with easy steps in any folder:

/boot/system/cache/tmp/New folder> mkdir New\ folder/
/boot/system/cache/tmp/New folder> touch New\ folder/foo
/boot/system/cache/tmp/New folder> ln -s New\ folder/foo foolink
/boot/system/cache/tmp/New folder> rm New\ folder/foo 
/boot/system/cache/tmp/New folder> touch New\ folder/foo

comment:5 by axeld, 8 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:6 by pulkomandy, 4 years ago

Milestone: R1R1.1
Note: See TracTickets for help on using tickets.