-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable wayland by default, fallback to X11 #99
Conversation
Started test build 89959 |
Build 89959 successful
|
Started test build 90422 |
Build 90422 successful
|
Started test build 94526 |
Build 94526 successful
|
com.bitwarden.desktop.yaml
Outdated
- type: script | ||
dest-filename: bitwarden.sh | ||
commands: | ||
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID" | ||
- exec zypak-wrapper /app/Bitwarden/bitwarden "$@" | ||
- export TMPDIR="${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}" | ||
- if [ "${XDG_SESSION_TYPE}" == "wayland" ]; then | ||
- zypak-wrapper /app/Bitwarden/bitwarden --enable-features=UseOzonePlatform --ozone-platform=wayland "$@" | ||
- else | ||
- zypak-wrapper /app/Bitwarden/bitwarden "$@" | ||
- fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just my two cent: the structure of it is displeasing. I suggest writing a separate bash script.
cb7431e
to
de8cece
Compare
Started test build 105042 |
Build 105042 successful
|
They have updated Electron to 21: https://github.com/bitwarden/clients/blob/2ac8e27b319a3873ace0ea418f1c51d5b4c08b21/package.json#L82. After the next release, the flag should be changed to
|
@proletarius101 thanks for the heads up 👍 |
de8cece
to
dea0605
Compare
Started test build 14162 |
Started test build 14163 |
Build 14162 successful
|
Build 14163 successful
|
83471af
to
7ff155f
Compare
Started test build 17371 |
Build 17371 failed |
Started test build 17376 |
Build 17376 successful
|
Started test build 17381 |
Build 17381 successful
|
Started test build 17966 |
Build 17966 successful
|
The second one should not be fixed like that but instead like this (see https://github.com/flathub/com.visualstudio.code/blob/master/com.visualstudio.code.yaml#L26C1-L26C46): - --system-talk-name=org.freedesktop.login1 |
Sorry for the update again, but according to https://github.com/electron/electron/blob/main/shell/browser/lib/power_observer_linux.cc#L18 the correct fix would be: - --system-talk-name=org.freedesktop.login1
- --system-talk-name=org.freedesktop.login1.Manager |
Thank you for investigating this. Could you submit this fix in a separate PR? |
@ghisvail I will in a second :) |
@ghisvail should I also add the other fix in the new pr? |
yes please |
e013e1f
to
cdb70f9
Compare
Started test build 63711 |
Build 63711 successful
|
cdb70f9
to
fb3b3b6
Compare
Started test build 64396 |
@taaem could you test it again, now that your changes are in? |
Build 64396 successful
|
@ghisvail everything works for me now on wayland :) |
Testing locally on Endless OS on Wayland, and it works. It seems to fix #165 for me as well. |
fb3b3b6
to
b46b07d
Compare
Started test build 81040 |
Build 81040 successful
|
Looks like it's working on my X11 session too. |
This reverts commit 1eef6b2.
This reverts commit 1eef6b2.
There is an issue upstream with copy and paste on pure Wayland. Users have reported that keeping the X11 socket alive solves it. To be reverted when upstream fixes the issue for good. * Revert "Enable wayland by default, fallback to X11 (#99)" This reverts commit 1eef6b2. * Update com.bitwarden.desktop.yaml Co-authored-by: Tilo Spannagel <[email protected]> --------- Co-authored-by: Ghislain Vaillant <[email protected]> Co-authored-by: Tilo Spannagel <[email protected]>
No description provided.