diff --git a/lcl/interfaces/gtk2/unitywsctrls.pas b/lcl/interfaces/gtk2/unitywsctrls.pas index f302f39673..1f2fdf8408 100644 --- a/lcl/interfaces/gtk2/unitywsctrls.pas +++ b/lcl/interfaces/gtk2/unitywsctrls.pas @@ -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;