Kaydet (Commit) 29352616 authored tarafından Caolán McNamara's avatar Caolán McNamara

tdf#121275 fallback to gtk3 under wayland with unknown desktop

Change-Id: Ie63da823faf9067e61ca4870f464d49425bbc907
Reviewed-on: https://gerrit.libreoffice.org/63123
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9a103b64
......@@ -280,6 +280,12 @@ DESKTOP_DETECTOR_PUBLIC DesktopType get_desktop_environment()
ret = DESKTOP_LXQT;
else
{
// tdf#121275 if we still can't tell, and WAYLAND_DISPLAY
// is set, default to gtk3
const char* pWaylandStr = getenv("WAYLAND_DISPLAY");
if (pWaylandStr && *pWaylandStr)
return DESKTOP_GNOME;
// these guys can be slower, with X property fetches,
// round-trips etc. and so are done later.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment