https://bugs.documentfoundation.org/show_bug.cgi?id=145734

--- Comment #7 from Michael Weghorn <m.wegh...@posteo.de> ---
(In reply to Timur from comment #6)
> (In reply to Michael Weghorn from comment #5)
> > Do you have package adwaita-qt installed (i.e. the Qt 5 port of Adwaita)? 
> Yes. But I added it myself, I think it should install as a dependancy of
> libreoffice-qt5.

That's up to distro packagers to decide, but I personally don't think it should
be a dependency. LO can run just fine with any Qt style, and the Qt packages
that libreoffice-qt5 depends on bring some styles with them. So only people who
actually want to use the Adwaita theme need the package.


> Yes, setting qt5ct gives dark mode in light OS with "SAL_USE_VCLPLUGIN=qt5
> soffice", same with kf5. Even without setting env. variable
> QT_QPA_PLATFORMTHEME=qt5ct. That's for Ubuntu 22.04 with Gnome.

Great :)

> Wayland (default in Ubuntu 22.04) has error messages. Just running VCL
> doesn't work, and it says: "Warning: Ignoring XDG_SESSION_TYPE=wayland on
> Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway."
> But Wayland also works with "QT_QPA_PLATFORMTHEME=qt5ct
> SAL_USE_VCLPLUGIN=qt5 soffice", except it still gives the same error message.

IIUC, that's a warning, not an error message, and it's not
LibreOffice-specific, but I'd expect you'd see the same warning when running
any Qt/KDE application (e.g. kate) in a GNOME Wayland session.
For some reason (probably problems...), the "xcb" (i.e. X11) backend is used
for Qt applications by default, even when run in a Wayland session, i.e. the
application is using the X11 Qt platform plugin and running under XWayland,
rather than as a native Wayland application.
As you noticed, you can force the use of the wayland backend using
QT_QPA_PLATFORM=wayland.

You can even verify what QPA is being used in "Help" -> "About LibreOffice",
too.)


> Runnnig "QT_QPA_PLATFORM=wayland SAL_USE_VCLPLUGIN=qt5 soffice" gives error:
> "Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use
> QT_QPA_PLATFORM=wayland to run on Wayland anyway.
> QSocketNotifier: Can only be used with threads started with QThread
> qt.qpa.wayland: Wayland does not support QWindow::requestActivate()"

Is that actually an error and the application crashes or doesn't start or is it
just a warning and the application runs fine otherwise. (I think I've seen
that, too, but everything worked fine for me.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to