mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 14:59:30 +02:00
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:
parent
0471a9bf67
commit
13996b69ce
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user