0

Sometimes, newly-copied apps (though a bash script) end up retaining the "circle with strike-through" on top of their icon, even after running them. Restarting the system fixes this issue.

Is there any way to trigger a "refresh" of said icon, preferable exclusively, from the CLI? Since this is supposed to run on other systems than mine, I don't feel comfortable deleting the icon cache.

Asking in the context of OS X 10.8 and up.

[L.E.] I would also avoid relaunching Finder, if possible.

5
  • 2
    have you tried killall Finder ?
    – emotality
    Commented Jul 22, 2016 at 16:51
  • Well, that will be the solution, if I don't come up with something better. (Added as a later edit above, probably as you were writing.) Thanks. Commented Jul 22, 2016 at 16:54
  • Oh sorry I didn't read last sentence.. Just woke up :Z lol
    – emotality
    Commented Jul 22, 2016 at 16:55
  • 1
    I appreciate the suggestion anyway. In rare instances, killing Finder may not automatically trigger a restart. Sure, I can use open to relaunch it but I've just ran over a scenario under which it may fail as well. I won't get into details. Commented Jul 22, 2016 at 16:59
  • FWIW, the "touch" answer mentioned in this thread: stackoverflow.com/questions/16543781/… works for me - at least on Mojave. Commented Feb 16, 2021 at 21:10

0

You must log in to answer this question.

Browse other questions tagged .