Fix: Hide 'Minimize to system tray' setting on Wayland#9208
Conversation
Head branch was pushed to by a user without write access
|
im wondering if we could just hide the setting when wayland is detected |
|
I've spent some time searching to find out how to detect if we are using Wayland, but there doesn't seem to be a simple solution. |
|
I've tested with two electron-based apps that I use: Discord and Signal. |
|
The setting in FreeTube is explicitly designed to be minimize to system tray, not close to system tray. As for detecting wayland you can use the same approach as the existing code: https://github.com/FreeTubeApp/FreeTube/blob/development/src/main/index.js#L1163. |
|
I apologize if I wasn't clear. I wasn't suggesting that FreeTube should mimic "close to system tray" behavior. I was simply providing examples of how other Electron apps handle the "Minimize to tray" setting. If any of those apps successfully minimized to the system tray like FreeTube does on X11, it could have indicated that a solution was possible. Thanks for the code reference. As I mentioned in my concerns here, I wasn't sure it would cover all possible scenarios, but if you're confirming it does, that's great! I'll use it to hide the setting when it's unavailable. |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
91523c2 to
256c4da
Compare
Head branch was pushed to by a user without write access
256c4da to
5e262c7
Compare
|
I'm not sure what is happening with the CI, it builds on my side and |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
|
Looks like you accidentally added back the yarn.lock file but the development branch switched to pnpm a few weeks ago, so you probably need to rebase again after your reverts. |
…s not available on Wayland
…was enabled on Wayland
…g if it was enabled on Wayland" This reverts commit 5e262c7.
Head branch was pushed to by a user without write access
c6b6884 to
a868995
Compare
Head branch was pushed to by a user without write access
Pull Request Type
Related issue
closes #9187
Description
Wayland does not have a 'minimize' event (see electron/electron#51766 (comment)).
FreeTube can't really do anything on its side, nor can Electron.
Similar to MacOS, the fix is to hide this setting if Wayland is detected.
Testing
Linux Wayland
Linux Wayland with compatibility mode
--ozone-platform=x11Windows