-
Notifications
You must be signed in to change notification settings - Fork 668
-
Notifications
You must be signed in to change notification settings - Fork 668
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
Wayland support #8328
Comments
On my ubuntu 20.4 box:
@gabi18 probably similar issue with openSUSE-15.2 |
Its a separate module https://github.com/qt/qtwayland |
Reproducible on openSUSE Leap 15.2: export QT_QPA_PLATFORM=wayland Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb. Aborted (core dumped) |
Wayland module coming up in https://build.opensuse.org/package/show/isv:ownCloud:Qt51210/ocqt51210-qt5-qtwayland |
Testing needed:
On a machine with an X11 Desktop I get:
At least it loads a wayland platform plugin, when forced :-) |
Logged in with the "Ubuntu on wayland" option selected, when the login manager asks for password: It somewhat runs, but no window decoration and cannot be moved or minified. Tray icon is missing. Fonts are huge. Somewhat difficult to use. @jonathanernst I am new to wayland, not sure wht is wrong. It may be a miscompilation on my side when generating the qtwayland5 module, or it maybe something in the client code, or a confing thing... any ideas? I have /usr/sbin/gdm, gdm-session-worker, /usr/lib/gdm3/gdm-wayland-session and /usr/libexec/gnome-session-binary running. Sway is installed, but does not seem to start automatically. |
@jnweiger first of all thanks a lot for your interest in this feature! Owncloud is one of the last application I use that is not wayland aware and look ugly with fractional scaling on my screen :-) I've tried your test version in both Ubuntu 20.04 et 20.10 and get the same results as you. I can confirm that it's using wayland with xeyes and can see that the fonts are now perfect but I have no decorations. Unfortunately as I don't have this issue with other wayland-compatible apps I have currently no idea why you don't have decorations. It might well come from the fact that with wayland the client (owncloud in this instance) is responsible for the window decoration by default. It seems also possible to have server side decorations though. Maybe this is relevant 👎
=> maybe we need this xdg-decoration extension or a runtime ? Hope it helps and thanks again! Edit: It seems Mutter doesn't implement server side decorations (see for example dosbox-staging/dosbox-staging#650), maybe the best route is to check the code used by the hellowayland example? |
Probably very relevant pointers! Afaik, our desktop client currently does not know about client side decorations. At least to me, that is a new concept. In the meantime, I can only report: Same issue reproduced on Debian-10.7.0 with gnome3. |
Testing Wayland support is part of the 2.7.5 release testing: #8349 |
Prvoiding a missing dependency was part of the release preparations. But there is no more wayland testing planned for the release on top of what we discuss here. @michaelstingl Do you want wayland support as a release blocker? I'd suggest to keep that independant of the release until you have a developer to look into that. |
No, not a blocker for 2.7.5. in case it’s not solved, we should mention it in the release communication and in the supported platform docs. |
I built the current master in a VM running an openSUSE Leap 15.2 live image with KDE, in a "full wayland" session. Everything looks fine in there: For distribution, we probably just have to ship the wayland platform plugin(s). That's a little complex, but I'm sure we'll figure it out. Other than that, I think the client supports Wayland properly already. Edit: I built the client against the system packages. |
@fmoc unfortunately to support GNOME/Mutter we still miss client side decoration |
We might not have enabled building the gtk Plugin. |
@jonathanernst could you please check whether setting that second environment variable solves the issue on your end as well? |
2.8 RC AppImage works fine on Leap 15.2 wand Ubuntu 20.04.2, both with GNOME. I had to set only |
Please Since i upgraded Ubuntu to version 21.04, i have the same issue with gnuradio running any GRC file. |
@ik8ozv please open a new issue and provide the full context. |
@ik8ozv I had the same issue on Ubuntu 21.04 for a different application. Changing to
|
Retested with 2.9.0 RC1
The mentioned workaround, of using xcb instead of native wayland also works with 2.9.0 The warning message about QT_QPA_PLATFORM should be avoided when the suggested setting is actually in use. |
Same with 10.9.1-rc4: the client runs fine, but I still miss the secret how to get window decorations on my ubuntu-20.04 wayland test system. I suggest to re-open here and document (or implement) the remaining steps. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
owncloud on Ubuntu 22.04 with Wayland still crashes. |
@kuateric what exactly is the terminal output, though? Are you using On Fedora 36, for instance, the application starts up but misses window decorations. Note that this is unrelated to packaging as an AppImage, apparently. |
Tracked the issue down to Not sure yet why the native packages aren't working. Edit: this is what the client is looking like on Fedora 36 when using X11: |
Thank you for taking a look. Which on of these should i delete in order to get it work. Is it possible to set QT_QPA_PLATFORM=wayland permanently? if so how ?
the problem is then related to the native packages here https://download.owncloud.com/desktop/ownCloud/stable/latest/linux/download/? Is it not better to fix the issue in the native packages and make it easier for us to install it properly ? Thanks |
Seems like you've been busy, and may have damaged your system. I think we can repair it with reasonable effort, though. Next time, please wait for instructions explicitly. I'll respond to all your comments in a single post. By the way, I am not sure whether a language barrier is causing problems here. If so, please let me know. We do not want you to understand us wrongly (and vice versa).
None. I was discussing the contents of the AppImage. You're looking at system files. Please do not delete any files from your system randomly. (See below.)
I did not say you should use that. I was asking whether this is already set. To check, please open a terminal and type the following code snippet: > echo "$QT_QPA_PLATFORM" If it shows no output, you can assume it is not set. If there is any output, please post it here.
Native packages are under investigation right now. Unfortunately, Ubuntu has made debugging in live CD VMs extremely hard with its snap stuff. I need to set up a proper VM.
For future tests, feel free to use https://demo.owncloud.org, https://demo.owncloud.com or https://ocis.owncloud.com.
This is unexpected, and I cannot reproduce this on a vanilla (that means, freshly set up) system. It may be related to changes you performed on your system. Of course, I cannot tell which one exactly led to the problem. As long as I cannot reproduce the issue, I cannot tell you how to fix it.
Again, nobody instructed you to delete this file from your system. You just broke your system to some extent. Since you seem kind of unexperienced, I'd like to try to help you, though. Try running the following commands in a terminal to reinstall the library: sudo apt-get update
sudo apt-get install --reinstall libwayland-client0
Generally, please never just randomly delete files from your system if you do not know what you're doing.
This is what our AppImage is for. It doesn't require root permissions, and is easier to use in general. The incompatibility with Wayland seems unrelated to the packaging format anyway. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@kuateric please open your own issue(s). |
With #11625 I think we can close this issue 🥳 |
Expected behaviour
Running owncloud client under wayland should be possible.
Actual behaviour
Owncloud client crashes.
export QT_QPA_PLATFORM=wayland
owncloud
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.
Abandon (core dumped)
Steps to reproduce
Client configuration
Client version:
2.7.4
Operating system:
Ubuntu 20.04
OS language:
French
Qt version used by client package (Linux only, see also Settings dialog):
5.12.9
Client package (From ownCloud or distro) (Linux only):
From owncloud
The text was updated successfully, but these errors were encountered: