From 874e696110b125a228ea86800645b1aa3e62f53b Mon Sep 17 00:00:00 2001 From: mattias Date: Wed, 2 Nov 2016 11:15:00 +0000 Subject: [PATCH] lcl: gtk2: unity desktop use UTF-8 git-svn-id: trunk@53285 - --- lcl/interfaces/gtk2/unitywsctrls.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcl/interfaces/gtk2/unitywsctrls.pas b/lcl/interfaces/gtk2/unitywsctrls.pas index 2282ed6b92..36b782a176 100644 --- a/lcl/interfaces/gtk2/unitywsctrls.pas +++ b/lcl/interfaces/gtk2/unitywsctrls.pas @@ -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;