[Bug]: App doesn't show any content/is transparent on Gnome/wayland
⚠️ Before submitting, please verify the following: ⚠️
- [X] This is a bug, not a question or a configuration issue.
- [X] This issue is not already reported on Github (I've searched it).
- [X] Nextcloud Server and Desktop Client are up to date. See Server Maintenance and Release Schedule and Desktop Releases for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct
Bug description
When opening the main app on Gnome - Wayland (openSUSE Tumbleweed) it doesn't show any content. It has a border but besides that it's just a transparent window.

Steps to reproduce
Install Nextcloud desktop, configure an account, open Nextcloud desktop.
Expected behavior
I would love to see something there :-)
Which files are affected by this bug
not sure.
Operating system
Linux
Which version of the operating system you are running.
Thumbleweed
Package
Distro package manager
Nextcloud Server version
not sure.
Nextcloud Desktop Client version
3.5.1-1.1
Is this bug present after an update or on a fresh install?
Fresh desktop client install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
- [ ] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Nextcloud Server logs
No response
Additional info
No response
Same problem under ArchLinux:
$ nextcloud --version
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Nextcloud version 3.5.50git
Git revision 6456ea3502efd9e7116e6e23051a9628ee59a708
Using Qt 5.15.4, built against Qt 5.15.4
Using Qt platform plugin 'xcb'
Using 'OpenSSL 1.1.1o 3 May 2022'
Running on Arch Linux, x86_64
$ uname -a
Linux kitsune 5.17.9-arch1-1 #1 SMP PREEMPT Wed, 18 May 2022 17:30:11 +0000 x86_64 GNU/Linux
│2022-05-28 15:57:52:858 [ debug nextcloud.sync.database.sql /tmp/trizen-yosijo/nextcloud-client-git/src/nextcloud-client/src/common/ownsql.cpp:295 ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fi│
│2022-05-28 15:57:52:859 [ warning default qrc:/qml/src/gui/tray/ActivityItemContent.qml:87 ]: qrc:/qml/src/gui/tray/ActivityItemContent.qml:87: TypeError: Cannot read property 'paintedHeight' of null │
│2022-05-28 15:57:52:859 [ warning default qrc:/qml/src/gui/tray/ActivityItemContent.qml:82 ]: qrc:/qml/src/gui/tray/ActivityItemContent.qml:82: TypeError: Cannot read property 'paintedWidth' of null │
│2022-05-28 15:57:52:860 [ warning default qrc:/qml/src/gui/tray/ActivityItemContent.qml:87 ]: qrc:/qml/src/gui/tray/ActivityItemContent.qml:87: TypeError: Cannot read property 'paintedHeight' of null │
│2022-05-28 15:57:52:860 [ warning default qrc:/qml/src/gui/tray/ActivityItemContent.qml:82 ]: qrc:/qml/src/gui/tray/ActivityItemContent.qml:82: TypeError: Cannot read property 'paintedWidth' of null
If you think it's an extra topic, I'll be happy to open a new issue.
Temporary solution (I think?)
Install the libqt5-qtwayland package
then run nextcloud from the terminal:
QT_QPA_PLATFORM=wayland nextcloud
@MrMiracles Thank you, that worked!
For convince it's also possible to modify the .desktop file:
cp /usr/share/applications/com.nextcloud.desktopclient.nextcloud.desktop /home/user/.local/share/applications
vim /home/user/.local/share/applications/com.nextcloud.desktopclient.nextcloud.desktop
Change line 4 to:
Exec=env QT_QPA_PLATFORM=wayland nextcloud
hint: don't forget to adapt to your username
@MrMiracles Thank you, that worked!
For convince it's also possible to modify the .desktop file:
cp /usr/share/applications/com.nextcloud.desktopclient.nextcloud.desktop /home/user/.local/share/applications vim /home/user/.local/share/applications/com.nextcloud.desktopclient.nextcloud.desktopChange line 4 to:
Exec=env QT_QPA_PLATFORM=wayland nextcloudhint: don't forget to adapt to your username
This fix worked for me also. Would be nice to see this made default if it's not going to work properly with XWayland.
Very thanks :+1: :smiley:
Problem still exists and workarounds do not help: Kubuntu 23.04 KDE Plasma: 5.27.6 QT Version: 5.15.8 Wayland
Problem still exists and workarounds do not help: Kubuntu 23.04 KDE Plasma: 5.27.6 QT Version: 5.15.8 Wayland
For me in Debian trixie the GUI showed up after installing qt6 wayland packages:
apt-get install libqt6waylandclient6
To Start the APP i needed set the environment variable as following:
QT_QPA_PLATFORM=xcb ~/appimages/Nextcloud-3.10.1-x86_64.AppImage
**** Update (2 days later)** With the very same setup I failed to start Nextcloud Client. ( Gui still transparent) I wondered why i set a QT5 environment Variable and installed a QT6 Package. So I uninstalled the named Package. I played around. There seems to be something like a race condition. from time to time the GUI showed up. Mostly i got the transparent GUI.
However the Package should work out of the box. But somehow the detection of wayland seems to be broken?
A web search let me to: https://github.com/yuzu-emu/yuzu/pull/7410 Here they state that wayland expects that something needs to be rendered in the newly initialized window.
Maybe the link helps