#15313: Icons - running apps showing "broken computer" icon
------------------------------+----------------------------
Reporter: vidrep | Owner: pulkomandy
Type: bug | Status: assigned
Priority: normal | Milestone: Unscheduled
Component: User Interface | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
------------------------------+----------------------------
Comment (by pulkomandy):
My work (for this change) was not to allow setting icons on symlinks, but
allowing the app itself to know that it was launched from a symlink,
getting the correct argv[0] so it can use the filename (busybox uses this
when run from Terminal to behave as different apps), or in the case of the
app I'm working on, use informations stored in the symlink attributes to
behave differently.
Setting the icon on symlinks is in fact somewhat easier: Tracker is
explicitly traversing the symlink to get the icon already, at least in the
InfoWindow case, and will show the correct icon for broken symlinks, if
you set one. So we would just need to reverse the order in which we check
things here (check if the symlink has an icon first, and if it doesn't,
check the pointed file/dir).
I'm now testing changing BRoster to dereference the entry_ref it gets, so
that GetTrackerIcon will behave correctly for getting an icon from a
running application (through its app_info).
--
Ticket URL: <https://dev.haiku-os.org/ticket/15313#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.