flecs icon indicating copy to clipboard operation
flecs copied to clipboard

Minimize to tray for mac

Open FormalSnake opened this issue 3 years ago • 11 comments

After enabling the plugin for the minimize to tray, i found out it is very buggy but i cant disable it! i press show and then i press on the plugin dropdown menu, but i cant click the left side of the menubar!

Please help

FormalSnake avatar Jan 18 '22 16:01 FormalSnake

Please describe your issue more clearly /+ make a video/screenshot

Araxeus avatar Jan 18 '22 16:01 Araxeus

https://user-images.githubusercontent.com/90651091/149980949-4522b814-1e87-4fc4-976f-ebf9cf73de44.mov

I hope this shows the problem

FormalSnake avatar Jan 18 '22 16:01 FormalSnake

you don't have the in-app-menu plugin enabled right?

I have no idea what this menu is since I dont have a mac :(

maybe @th-ch can help

Araxeus avatar Jan 18 '22 17:01 Araxeus

@th-ch pls help

FormalSnake avatar Jan 19 '22 09:01 FormalSnake

Warning: This doesn't fix this mode, but gets you back to the window so you can use the app again.

In

/Users/{your_user}/Library/Application Support/YouTube Music/

is a file called config.json

Open in a text editor and change

"options": {
    "tray": true,
    "appVisible": false,

to

"options": {
    "tray": false,
    "appVisible": true,

Quit and restart the app. Use Activity Monitor to force Quit if you can't access the app window.

@Araxeus this doesn't have to do with the in-app-menu plugin, but instead on Mac when you go to Options > Tray and change from Disabled. Either of the Enabled modes seem to cause it.

mjaverto avatar Jan 19 '22 14:01 mjaverto

Seems to be some weird bug with Electron's Menu module

meanwhile if you still want to use the tray functionality - enabling in-app-menu could fix the problem theoretically (would be nice if you could test that out to make sure)

Araxeus avatar Jan 19 '22 15:01 Araxeus

I always had in-app-menu enabled but still saw this @Araxeus.

I reproduced again with it enabled. I'm not looking for a fix here myself, just how to undo the option which is this thread.

mjaverto avatar Jan 20 '22 11:01 mjaverto

Oh sorry, on other platforms in-app-menu is an internal menu which replaces the native menu

But i guess it just doesn't work on mac

Araxeus avatar Jan 20 '22 11:01 Araxeus

Warning: This doesn't fix this mode, but gets you back to the window so you can use the app again.

In

/Users/{your_user}/Library/Application Support/YouTube Music/

is a file called config.json

Open in a text editor and change

"options": {
    "tray": true,
    "appVisible": false,

to

"options": {
    "tray": false,
    "appVisible": true,

Quit and restart the app. Use Activity Monitor to force Quit if you can't access the app window.

@Araxeus this doesn't have to do with the in-app-menu plugin, but instead on Mac when you go to Options > Tray and change from Disabled. Either of the Enabled modes seem to cause it.

this fixed it, thanks!

FormalSnake avatar Feb 02 '22 11:02 FormalSnake

Tray mode is definitely problematic in MacOS. It becomes impossible to get to any menus. Is there anything that I can look into to get more info? Happy to try and fix it however I am inexperienced in this space.

gugahoi avatar Apr 04 '22 00:04 gugahoi

For me, the app just doesn't take focus or show in the cmd+tab list- but it's still interact-able. The menu icon just focuses it, but since it doesn't take active focus I can't use the macOS menu. Since in-app-menu doesn't seem to work on macOS, there's no way to access the menubar at all.

Edit: just saw the PR above- hope it gets released soon!

kotx avatar Apr 14 '22 00:04 kotx