mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 17:01:38 +02:00
LCL: Identify Unity better when supporting its TTrayIcon. Issue #29638.
git-svn-id: trunk@51600 -
This commit is contained in:
parent
69e99f6102
commit
0e74507516
@ -258,6 +258,13 @@ begin
|
|||||||
if Loaded then
|
if Loaded then
|
||||||
Exit(Initialized);
|
Exit(Initialized);
|
||||||
Loaded:= True;
|
Loaded:= True;
|
||||||
|
if GetEnvironmentVariable('XDG_CURRENT_DESKTOP') <> 'Unity' then
|
||||||
|
begin
|
||||||
|
Initialized := False;
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
if Initialized then
|
||||||
|
Exit(True);
|
||||||
Module := LoadLibrary(libappindicator);
|
Module := LoadLibrary(libappindicator);
|
||||||
if Module = 0 then
|
if Module = 0 then
|
||||||
Exit;
|
Exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user