mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-11 04:01:18 +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:
parent
d460897f84
commit
2dadf7ce57
@ -271,7 +271,7 @@ void start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION
|
#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);
|
QLibrary lib_unity(qstr("unity"), 9, 0);
|
||||||
loadLibrary(lib_unity, "unity", 9);
|
loadLibrary(lib_unity, "unity", 9);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user