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 |
…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
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
efb4f5ff-1298-471a-8973-3d47447115dc
left a comment
There was a problem hiding this comment.
LGTM! Tested on Fedora and Windows
Sorry for the wait.
* development: Fix: Hide 'Minimize to system tray' setting on Wayland (FreeTubeApp#9208) Translated using Weblate (Hungarian) Fix: import history from youtube adding trailing space to title (FreeTubeApp#9204) Fix keyboard shortcuts arent't working during "SABR backoff" (FreeTubeApp#9315) Fix incomplete watch progresss bar if video length has milliseconds (FreeTubeApp#9267) Translated using Weblate (Hungarian) Fix default quality not working when video aspect ratio is not 16/9 or 9/16 (FreeTubeApp#9312) Remove error when 'publishedText' is missing as it is a valid state (FreeTubeApp#9321) Fix LibRedirect download link in README (FreeTubeApp#9323) Bump actions/cache/restore from 5.0.5 to 6.0.0 (FreeTubeApp#9329) Bump actions/cache/save from 5.0.5 to 6.0.0 (FreeTubeApp#9330) Translated using Weblate (French) Fix premierDate parsing in subscription (FreeTubeApp#9309) # Conflicts: # src/renderer/components/GeneralSettings/GeneralSettings.vue
* development: (21 commits) Bump the webpack group across 1 directory with 2 updates (FreeTubeApp#9347) Bump the stylelint group across 1 directory with 3 updates (FreeTubeApp#9345) Bump vue from 3.5.38 to 3.5.39 (FreeTubeApp#9353) Bump js-yaml from 4.2.0 to 5.2.0 (FreeTubeApp#9348) Bump globals from 17.6.0 to 17.7.0 (FreeTubeApp#9350) Bump the fortawesome group with 5 updates (FreeTubeApp#9346) Bump shaka-player from 5.1.10 to 5.1.12 (FreeTubeApp#9351) Bump the eslint group with 6 updates (FreeTubeApp#9344) Translated using Weblate (Basque) Fix: Hide 'Minimize to system tray' setting on Wayland (FreeTubeApp#9208) Translated using Weblate (Hungarian) Fix: import history from youtube adding trailing space to title (FreeTubeApp#9204) Fix keyboard shortcuts arent't working during "SABR backoff" (FreeTubeApp#9315) Fix incomplete watch progresss bar if video length has milliseconds (FreeTubeApp#9267) Translated using Weblate (Hungarian) Fix default quality not working when video aspect ratio is not 16/9 or 9/16 (FreeTubeApp#9312) Remove error when 'publishedText' is missing as it is a valid state (FreeTubeApp#9321) Fix LibRedirect download link in README (FreeTubeApp#9323) Bump actions/cache/restore from 5.0.5 to 6.0.0 (FreeTubeApp#9329) Bump actions/cache/save from 5.0.5 to 6.0.0 (FreeTubeApp#9330) ... # Conflicts: # pnpm-lock.yaml
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