mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 09:50:31 +02:00
LCL-GTK2: Make TrayIcon.OnClick work for non-Unity desktops. Issue #35983.
git-svn-id: trunk@61758 -
This commit is contained in:
parent
6cbcc2951b
commit
6d2bdd67a7
@ -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