mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 21:01:14 +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
|
if Loaded then
|
||||||
Exit(Initialized);
|
Exit(Initialized);
|
||||||
Loaded:= True;
|
Loaded:= True;
|
||||||
|
if GetEnvironmentVariableUTF8('XDG_CURRENT_DESKTOP') <> 'Unity' then
|
||||||
|
begin
|
||||||
|
Initialized := False;
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
if Initialized then
|
if Initialized then
|
||||||
Exit(True);
|
Exit(True);
|
||||||
Module := LoadLibrary(libappindicator_3); // thats the one we want here.
|
Module := LoadLibrary(libappindicator_3); // thats the one we want here.
|
||||||
|
Loading…
Reference in New Issue
Block a user