Skip to content
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

Does not start on Wayland any more after commit 112f90039b #65

Closed
rmader opened this issue May 24, 2022 · 7 comments
Closed

Does not start on Wayland any more after commit 112f90039b #65

rmader opened this issue May 24, 2022 · 7 comments

Comments

@rmader
Copy link

rmader commented May 24, 2022

Commit 112f900 forces the Wayland backend in Wayland sessions however Anki still reports the following:

Wayland support is disabled by default due to bugs:
ankitects/anki#1767
You can force it on with an env var: ANKI_WAYLAND=1
Qt info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Qt warning: could not connect to display
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Qt fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

I guess the commit should be reverted in the meantime.


workaround: flatpak override --user --env=ANKI_WAYLAND=1 --env=QT_QPA_PLATFORM=wayland net.ankiweb.Anki

@rmader
Copy link
Author

rmader commented May 24, 2022

cc @ingemarberg

@ingemarberg
Copy link
Collaborator

I'm very sorry about this mistake. I've pushed a change reverting this in #66 and also verified that it works in both X11 and Wayland. Please let me know that it's working for you as well. Once again, sorry about this. I'm still learning and this was rather embarrassing.

@rmader
Copy link
Author

rmader commented May 24, 2022

Once again, sorry about this. I'm still learning and this was rather embarrassing.

No worries, thanks for the fast reaction and for taking care of the package!

@rmader rmader closed this as completed May 24, 2022
@rmader
Copy link
Author

rmader commented May 24, 2022

P.S.: IMO it's a bug in Anki that it doesn't allow the Wayland backend when X11 is not available. Firefox for example, which also still defaults to X11, does that.

@violoncelloCH
Copy link

Thanks for this fix and the workaround (which is working) !
I'm not familiar to the flatpak/flathub build system, but just wondering, is there already a new release under way? Or for when is it planned? Thank you very much :)

@ingemarberg
Copy link
Collaborator

@violoncelloCH The new version was released sometime last night (CEST). I've tried installing it and it seems to work fine under Wayland by using the X11 backend.

@violoncelloCH
Copy link

thank you very much ! yes I can also confirm it to be working on Fedora 35 and 36 (wayland)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants