avogadrolibs icon indicating copy to clipboard operation
avogadrolibs copied to clipboard

Add support for Wayland

Open kevinsmia1939 opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. It will be some time before Wayland gain adoption. But since Ubuntu 21.04 and Fedora 34 switch to Wayland as default. Avogadro in Wayland is broken at the moment. If I were to guess, it might be because broken glew on Wayland. So when glew support it, Avogadro might be.

Describe the solution you'd like Run Avogadro on Wayland.

Describe alternatives you've considered

Additional context https://discuss.avogadro.cc/t/will-avogadro-support-wayland/3499

kevinsmia1939 avatar May 09 '21 10:05 kevinsmia1939

As I mentioned on the discussion forum, while there's a potential fix for GLEW, there are also several alternatives:

  • https://github.com/anholt/libepoxy
  • https://github.com/skaslev/gl3w

I'd probably lean towards gl3w when we switch to the core profile.

ghutchis avatar May 09 '21 16:05 ghutchis

This issue has been mentioned on Avogadro Discussion. There might be relevant details there:

https://discuss.avogadro.cc/t/will-avogadro-support-wayland/3499/3

avo-bot avatar May 09 '21 16:05 avo-bot

This issue has been mentioned on Avogadro Discussion. There might be relevant details there:

https://discuss.avogadro.cc/t/allow-a-u-xyz-import-dalton-input-generator-bugs-and-wayland-support/4418/2

avo-bot avatar Apr 01 '23 22:04 avo-bot

Noticed this issue while browsing the repo. I am running 1.98.1 on Wayland (KDE Plasma 5.27.9 on OpenSUSE Tumbleweed) just fine. Presumably this means the problem has since been resolved?

matterhorn103 avatar Nov 13 '23 09:11 matterhorn103

Noticed this issue while browsing the repo. I am running 1.98.1 on Wayland (KDE Plasma 5.27.9 on OpenSUSE Tumbleweed) just fine. Presumably this means the problem has since been resolved?

Where did you download from?

kevinsmia1939 avatar Nov 13 '23 14:11 kevinsmia1939

Ok, this seems to only be true for the AppImage version, as when I build from source, I get graphical glitches. Weirdly, it's the AppImage that prints qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "" as the first line of output, while the compiled version doesn't say anything about Wayland.

@kevinsmia1939 The AppImage from https://two.avogadro.cc/ and the nightly build available via the readme of the repo both work fine on my PC on the Wayland session. Are they are broken for you?

Edit: Ok, the AppImage only works because it runs on XWayland. Any version of Avogadro can be launched on XWayland by starting with ./avogadro2 -platform xcb

matterhorn103 avatar Nov 13 '23 18:11 matterhorn103

This should be fixed by #1577

ghutchis avatar Jan 18 '24 14:01 ghutchis