mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 18:09:32 +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
|
||||
Exit(Initialized);
|
||||
Loaded:= True;
|
||||
if GetEnvironmentVariable('XDG_CURRENT_DESKTOP') <> 'Unity' then
|
||||
begin
|
||||
Initialized := False;
|
||||
Exit;
|
||||
end;
|
||||
if Initialized then
|
||||
Exit(True);
|
||||
Module := LoadLibrary(libappindicator);
|
||||
if Module = 0 then
|
||||
Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user