Skip to content

Instantly share code, notes, and snippets.

@ivanzamarro
Created October 2, 2023 08:08
Show Gist options
  • Select an option

  • Save ivanzamarro/dd5c094ff996edd062947cd55000662e to your computer and use it in GitHub Desktop.

Select an option

Save ivanzamarro/dd5c094ff996edd062947cd55000662e to your computer and use it in GitHub Desktop.
Fix infinite loop of Logitech GHub on OSX

How to fix infinite loop of Logitech GHub on OSX

TL;DR: The Logitech GHub application faces an issue where it gets stuck in an infinite loop during initialization. The image provided illustrates this problem. Different attempted solutions include reinstalling and updating the application, which did not work. A working solution involves editing ~/.zshrc or ~/.bashrc using an OSX terminal and including specific aliases. After this, the user needs to manually reload the file and then kill and relaunch the application using terminal commands.

sudo pkill -i lghub; sleep 5; open /Applications/lghub.app

The problem is that the Logitech GHub application gets stuck in an infinite loop during its initialization, as can be seen in the following image:

image

After investigating various solutions, including reinstalling and updating the application (spoiler: it doesn’t work!).

The only solution I have found that actually works is the following:

  1. Edit your ~/.zshrc or ~/.bashrc (you should use an OSX terminal) to include the following aliases (updated October 2023):
alias ghub-kill="sudo kill \$(ps aux | grep lghub | grep -v grep | awk '{print \$2}');"

alias ghub='open /Applications/lghub.app/Contents/MacOS/lghub_agent.app; open /Applications/lghub.app/Contents/MacOS/lghub_updater.app; open /Applications/lghub.app;'
  1. Manually reload the file with source ~/.zshrc or source ~/.bashrc

  2. Kill the application in the terminal with ghub-kill and relaunch it with ghub

👍 Kudos to the Reddit user: Mendeln12 who, in this thread, which is undervalued and indexed, found the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment