LCL: Identify Unity better when supporting its TTrayIcon. Issue .

git-svn-id: trunk@51600 -
This commit is contained in:
juha 2016-02-12 09:11:21 +00:00
parent 69e99f6102
commit 0e74507516

View File

@ -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;