diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2018-10-13 14:40:00 -0500 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2018-10-14 00:34:16 +0200 |
commit | b63d48a146c3615f56b6ec83361b3c02ebcbb215 (patch) | |
tree | 0dfb4a71e9e2d925d835ec58a73a0f51a7d65515 /vcl/unx/generic | |
parent | 9886625d02fee7692ff94e7c5b63dc2f51e31fa1 (diff) |
Add some additional verification for LXQt as the desktop environment.
ac9c14dbbd3a4341de0aa1b1dbc37ad2ce69398c added initial support for LXQt
as a desktop environment under Linux, but this only works where a pure
LXQt session is started and not when an LXQt distributor's session has
been started.
In upstream LXQt, $XDG_CURRENT_DESKTOP is always set to LXQt, so check
that first.
Change-Id: Ifaa1f85192dc7a943911846e1cb39cf49be03baf
Reviewed-on: https://gerrit.libreoffice.org/61751
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r-- | vcl/unx/generic/desktopdetect/desktopdetector.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/unx/generic/desktopdetect/desktopdetector.cxx b/vcl/unx/generic/desktopdetect/desktopdetector.cxx index bf70b376c0e0..b446f7c397dd 100644 --- a/vcl/unx/generic/desktopdetect/desktopdetector.cxx +++ b/vcl/unx/generic/desktopdetect/desktopdetector.cxx @@ -260,8 +260,10 @@ DESKTOP_DETECTOR_PUBLIC DesktopType get_desktop_environment() { if ( rCurrentDesktopStr.equalsIgnoreAsciiCase( "unity" ) ) return DESKTOP_UNITY; - else if ( rCurrentDesktopStr.equalsIgnoreAsciiCase( "gnome") ) + else if ( rCurrentDesktopStr.equalsIgnoreAsciiCase( "gnome" ) ) return DESKTOP_GNOME; + else if ( rCurrentDesktopStr.equalsIgnoreAsciiCase( "lxqt" ) ) + return DESKTOP_LXQT; } } |