Categories
MacOS

Quick Tip: HyperDock as a Service

Screen grab from the HyperDock website

HyperDock, a macOS tool that provides windows previews like modern versions of Windows, seems to have problems on macOS Catalina for me. At random times, it will stop working and I need to go to System Preferences and disable and re-enable it; sometimes many times a day.

I’ve tried contacting the author and so far I’ve not gotten any response. The last update was quite a while ago, and … just radio silence.

To help fix this, I’ve fiddled around enough to figure out what program to run to get HyperDock to work again, and have built a really janky daemon for it using a Login Item.

I have this script that runs every time I log in, which will (re)start the HyperDock Helper, and restart it every time it dies:

#/bin/zsh
until "/Users/username/Library/PreferencePanes/HyperDock.prefpane/Contents/Resources/HyperDock Helper.app/Contents/MacOS/HyperDock Helper"; do
	echo "HyperDock Helper crashed with exit code $?.  Respawning.." >&2 | tee /Users/username/.hh.log
	sleep 1
done

and it works…

2020-02-28 23:43:32.201 HyperDock Helper[11165:524120] de.bahoom.HyperDock-Helper 1.8 (1.8.0) starting ...
2020-02-28 23:43:32.282 HyperDock Helper[11165:524120] AXIsProcessTrusted: 1
2020-02-28 23:43:32.385 HyperDock Helper[11165:524120] Can't find app with identifier com.apple.iTunes
2020-02-28 23:43:40.262 HyperDock Helper[11165:524212] Couldn't find wid for axw (null)
2020-02-28 23:43:41.364 HyperDock Helper[11165:524125] Couldn't find wid for axw (null)
2020-02-28 23:44:01.464 HyperDock Helper[11165:524120] uneven contentView size: {427, 202}
2020-02-28 23:44:01.464 HyperDock Helper[11165:524120] uneven mainViewBounds size: {427, 202}
./hyperdock-helper.sh: line 5: 11165 Terminated: 15          "/Users/username/Library/PreferencePanes/HyperDock.prefpane/Contents/Resources/HyperDock Helper.app/Contents/MacOS/HyperDock Helper"
HyperDock Helper crashed with exit code 143.  Respawning..
2020-02-28 23:44:37.091 HyperDock Helper[11177:524717] de.bahoom.HyperDock-Helper 1.8 (1.8.0) starting ...
2020-02-28 23:44:37.169 HyperDock Helper[11177:524717] AXIsProcessTrusted: 1
2020-02-28 23:44:37.275 HyperDock Helper[11177:524717] Can't find app with identifier com.apple.iTunes

Hopefully this might help someone else that has the same problem that’s been bothering me for months 🙂

One reply on “Quick Tip: HyperDock as a Service”

Hi There!
I have the very same problem and that drives me mad. Especially the no response from the developer of Hyper dock.
This is one of my paid app and it’s so frustrating it just stops working in every 30 sec after I make some changes in the system preference.
Anyway you are actually were in the same boat and I’m happy to hear that you finally could solve the problem.

I read your article but unfortunately I don’t know how to create that “daemon”.

Can you please help me out how to create that file and where shall I place it to open it at log in.

Looking forward to your answer and thanks in advance!

Best,
Gábor

Leave a Reply to Gábor Cancel reply