AdGuardForSafari icon indicating copy to clipboard operation
AdGuardForSafari copied to clipboard

Remove the AdGuard for Safari logo in the dock

Open chribbex opened this issue 5 years ago • 26 comments

The adguard icon launches in my dock every time I boot my Mac. The app Is only "active" for a couple of seconds, and then stays "inactive" in the dock. It would be neat if there were a toggle to hide the icon as there is one for the icon in the menu bar.

chribbex avatar Aug 27 '19 07:08 chribbex

@Mizzick is this a MAS build problem or do we have this issue on the standalone build as well?

ameshkov avatar Aug 27 '19 08:08 ameshkov

It's the same with standalone builds. But I guess this is not an issue, it's a normal behaviour.

Mizzick avatar Aug 27 '19 08:08 Mizzick

@Mizzick a normal behavior for an Electron app you mean?:)

ameshkov avatar Aug 27 '19 08:08 ameshkov

Well as I know recently used app icons stays in dock for some time and there is no way to launch without an icon in the dock for electron apps.

Mizzick avatar Aug 27 '19 08:08 Mizzick

@ameshkov wontfix ? most Mac app that don't need user interaction mostly just have a menubar icon (on top) and no Dock icon. Also, I'm not a Electron dev at all and I found how to do it in the official documentation here : https://electronjs.org/docs/api/dock#dockhide-macos

leolelego avatar Jan 03 '20 00:01 leolelego

@Mizzick ping.

Btw, why is this issue in the AGH repo?:)

ameshkov avatar Jan 06 '20 20:01 ameshkov

Well I think we can do something with this.

Mizzick avatar Jan 07 '20 15:01 Mizzick

I'm amazed this is still an issue. Way back in august last year I've reported this on Reddit. It was confirmed and was supposed to be fixed "soon". The auto-hide function still doesn't work. And on top of that the app crashes almost every single time it starts up. The older versions never did this. They worked fine, didn't show any dock icons and started without crashing. It shouldn't take more than 6 months to fix startup crashes and hide the stupid dock icon.

ghost avatar Jan 19 '20 12:01 ghost

I'm amazed this is still an issue

We mistakenly thought that there was no easy way to do this. Just two weeks ago we realized that this was not that difficult.

The auto-hide function still doesn't work

Could you please explain what do you mean by "auto-hide"?

And on top of that the app crashes almost every single time it starts up

Could you please export the crash report next time it happens?

ameshkov avatar Jan 19 '20 15:01 ameshkov

It seems like this was aimed to be added in 1.7 but that didn't seem to happen, then this issue was just closed without comment. Is there any chance for this being added in the future? Thanks!

robinadr avatar Mar 24 '20 02:03 robinadr

The dock icon still shows quickly when auto-start is enabled. It steals focus for that time too. Is there a way to start AdGuard in the background without anything show in the dock?

zearp avatar Aug 15 '20 23:08 zearp

@ameshkov wontfix ? most Mac app that don't need user interaction mostly just have a menubar icon (on top) and no Dock icon. Also, I'm not a Electron dev at all and I found how to do it in the official documentation here : https://electronjs.org/docs/api/dock#dockhide-macos

Thanks for that! Appears not to too difficult to implement this. It is so annoying that every single time there's this quick icon appearing in the dock that steals focus and then disappears again. There is no need for it to show there.

I tried compiling my own version but it seems impossible to compile a version for local usage without creating accounts in several places and even needing a AdGuard membership... which is the weirdest requirement I've seen so far on Github.

I hope someone with more knowledge than me can compile a version of this add-on where the dock icon doesn't show.

zearp avatar Aug 17 '20 13:08 zearp

It's been many months and this is still a problem with AdGuard for Mac. The icon still pops up in the dock after every single boot. How can no one at the company not find this sufficiently infuriating so as to fix it?

ghost avatar Apr 14 '21 19:04 ghost

@BrynWithin

Hello there, what version do you use? How often does it happen?

TheHasagi avatar Apr 15 '21 06:04 TheHasagi

@TheHasagi I installed AdGuard barely two days ago on my new M1 MacBook Air. As far as I'm aware all apps are up to date.

@Oleg-Chashko The icon doesn't disappear from the dock for me. It stays there forever unless I right-click and hide it.

ghost avatar Apr 15 '21 11:04 ghost

@BrynWithin The icon doesn't disappear from the dock for me. It stays there forever unless I right-click and hide it.

Hello there, this behavior has never been with me with the AdGuard application.

Oleg-Chashko avatar Apr 15 '21 11:04 Oleg-Chashko

@TheHasagi I installed AdGuard barely two days ago on my new M1 MacBook Air. As far as I'm aware all apps are up to date.

@Oleg-Chashko The icon doesn't disappear from the dock for me. It stays there forever unless I right-click and hide it.

same problem on Version 1.9.13

Shiyinq avatar May 27 '21 15:05 Shiyinq

Tbh, we have no idea how to get rid of that icon. We're using the APIs provided by Electron to hide the dock icon, but they seem to be unreliable. Unfortunately, this is the best we can do at the moment.

If anyone has an idea or a reference to an open source electron app that solves this, please let us know.

ameshkov avatar May 30 '21 17:05 ameshkov

Tbh, we have no idea how to get rid of that icon. We're using the APIs provided by Electron to hide the dock icon, but they seem to be unreliable. Unfortunately, this is the best we can do at the moment.

If anyone has an idea or a reference to an open source electron app that solves this, please let us know.

This dock issue is no longer a problem for me. Not sure what changed, but I noticed one day that AdGuard no longer appears in the dock at all. And it seems to be working just fine from the menu bar and starting at each boot.

ghost avatar May 30 '21 17:05 ghost

Tbh, we have no idea how to get rid of that icon. We're using the APIs provided by Electron to hide the dock icon, but they seem to be unreliable. Unfortunately, this is the best we can do at the moment.

If anyone has an idea or a reference to an open source electron app that solves this, please let us know.

I found this thread, it hope this may help. https://stackoverflow.com/questions/620841/how-to-hide-the-dock-icon

chribbex avatar Jun 01 '21 12:06 chribbex

I found this thread, it hope this may help. https://stackoverflow.com/questions/620841/how-to-hide-the-dock-icon

I guess experimenting with setActivationPolicy is possible: https://github.com/AdguardTeam/AdGuardForSafari/issues/612

ameshkov avatar Jun 01 '21 20:06 ameshkov

Are there any updates on this issue? The icon is still there for me. Apps like Noir, Honey and Wipr can launch and stay active without activating the app icon.

chribbex avatar Nov 07 '21 11:11 chribbex

same, this is very annoying.

mrmac189 avatar Dec 04 '21 12:12 mrmac189

image Just unchecklis Show recent applications in Dock, my problem solved

Shiyinq avatar Dec 29 '21 08:12 Shiyinq

@Shiyinq that's not a solution in any way. I use this recent apps part in Dock often.

mrmac189 avatar Dec 29 '21 08:12 mrmac189

Hi all, I still have this issue on version 1.11.14 from AppStore.

MrPhil17 avatar Jul 27 '23 06:07 MrPhil17