Merged revision(s) 61758 #6d2bdd67a7 from trunk:

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

git-svn-id: branches/fixes_2_0@61821 -
This commit is contained in:
maxim 2019-09-06 22:37:14 +00:00
parent 0471a9bf67
commit 13996b69ce

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.