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
doneCode language: PHP (php)

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.iTunesCode language: PHP (php)

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

Other Posts Not Worth Reading

Hey, You!

Like this kind of garbage? Subscribe for more! I post like once a month or so, unless I found something interesting to write about.


Comments

3 responses to “Quick Tip: HyperDock as a Service”

  1. Gábor Avatar

    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

  2. Thanks lot! It working 😀

    1. I just update script

      #/bin/zsh
      while :
      do
      check=$(pgrep Hyper)
      #echo ‘Hyperdock process ID: ‘ $check
      if [ ! -n “$check” ]
      then
      open /Library/PreferencePanes/HyperDock.prefpane/Contents/Resources/HyperDock\ Helper.app
      echo “$(date -R) Hyperdock restarted.”
      echo “$(date -R): Hyperdock restarted.” >> /Users/hacmieu/.hyperdock.log
      fi
      #echo ‘\n’ echo ‘Sleep 6s’
      sleep 6
      done

Leave a Reply