To be fair, it's garbage on windows too. The best solution I've come up with is a VM to configure the on-board settings and then run without the software normally
I believe the g305 works with the old logitech software, which is much better than ghub. You should give that a try and see if it solves your issues with having to launch ghub just to get your mouse to work properly. Here is a link: https://support.logi.com/hc/en-ca/articles/360025298053