Skip to content

Commit

Permalink
linux-libs: parse XDG_CURRENT_DESKTOP as colon separated list (telegr…
Browse files Browse the repository at this point in the history
…amdesktop#2663)

Signed-off-by: Marco Trevisan <[email protected]> (github: 3v1n0)
  • Loading branch information
3v1n0 authored and auchri committed Nov 23, 2016
1 parent d460897 commit 2dadf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/platform/linux/linux_libs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2dadf7c

Please sign in to comment.