2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 14:17:45 +00:00

linux-libs: parse XDG_CURRENT_DESKTOP as colon separated list (#2663)

Signed-off-by: Marco Trevisan <mail@3v1n0.net> (github: 3v1n0)
This commit is contained in:
Marco Trevisan
2016-11-23 10:25:11 +01:00
committed by Christoph
parent d460897f84
commit 2dadf7ce57

View File

@@ -271,7 +271,7 @@ void start() {
}
#ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION
if (QString(getenv("XDG_CURRENT_DESKTOP")).toLower() == qstr("unity")) {
if (QString(getenv("XDG_CURRENT_DESKTOP")).toLower().split(':').contains(qstr("unity"))) {
QLibrary lib_unity(qstr("unity"), 9, 0);
loadLibrary(lib_unity, "unity", 9);