LCL-GTK2: Make TrayIcon.OnClick work for non-Unity desktops. Issue #35983.

git-svn-id: trunk@61758 -
This commit is contained in:
juha 2019-08-25 19:44:39 +00:00
parent 6cbcc2951b
commit 6d2bdd67a7

View File

@ -267,6 +267,11 @@ begin
if Loaded then
Exit(Initialized);
Loaded:= True;
if GetEnvironmentVariableUTF8('XDG_CURRENT_DESKTOP') <> 'Unity' then
begin
Initialized := False;
Exit;
end;
if Initialized then
Exit(True);
Module := LoadLibrary(libappindicator_3); // thats the one we want here.