Load libunity in all DEs to set dock icon counter. #956

Before we tried loading and using libunity only in Unity DE.
This commit is contained in:
John Preston 2017-02-10 20:45:11 +03:00
parent c39bf239ea
commit 296c800b39
1 changed files with 5 additions and 7 deletions

View File

@ -271,14 +271,12 @@ void start() {
} }
#ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION #ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION
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);
load(lib_unity, "unity_launcher_entry_get_for_desktop_id", unity_launcher_entry_get_for_desktop_id); load(lib_unity, "unity_launcher_entry_get_for_desktop_id", unity_launcher_entry_get_for_desktop_id);
load(lib_unity, "unity_launcher_entry_set_count", unity_launcher_entry_set_count); load(lib_unity, "unity_launcher_entry_set_count", unity_launcher_entry_set_count);
load(lib_unity, "unity_launcher_entry_set_count_visible", unity_launcher_entry_set_count_visible); load(lib_unity, "unity_launcher_entry_set_count_visible", unity_launcher_entry_set_count_visible);
}
#endif // !TDESKTOP_DISABLE_UNITY_INTEGRATION #endif // !TDESKTOP_DISABLE_UNITY_INTEGRATION
if (gtkLoaded) { if (gtkLoaded) {