mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 18:40:52 +02:00
lcl: gtk2: unity desktop use UTF-8
git-svn-id: trunk@53285 -
This commit is contained in:
parent
43d6a1e7ab
commit
874e696110
@ -10,7 +10,7 @@ interface
|
||||
uses
|
||||
GLib2, Gtk2, Gdk2Pixbuf,
|
||||
Classes, SysUtils, dynlibs,
|
||||
Graphics, Controls, Forms, ExtCtrls, WSExtCtrls, LCLType;
|
||||
Graphics, Controls, Forms, ExtCtrls, WSExtCtrls, LCLType, LazUTF8;
|
||||
|
||||
{ TUnityWSCustomTrayIcon is the class for tray icons on systems
|
||||
running the Unity desktop environment.
|
||||
@ -258,7 +258,7 @@ begin
|
||||
if Loaded then
|
||||
Exit(Initialized);
|
||||
Loaded:= True;
|
||||
if GetEnvironmentVariable('XDG_CURRENT_DESKTOP') <> 'Unity' then
|
||||
if GetEnvironmentVariableUTF8('XDG_CURRENT_DESKTOP') <> 'Unity' then
|
||||
begin
|
||||
Initialized := False;
|
||||
Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user