From c2c0e5fae2ee672bb99bc2e8ef49f6d2bed1f2be Mon Sep 17 00:00:00 2001 From: VitalD Date: Tue, 18 Feb 2014 17:33:18 +0300 Subject: [PATCH] Update easybuttons.py Solving for bug: https://bugs.launchpad.net/linuxmint/+bug/1266751 --- usr/lib/linuxmint/mintMenu/plugins/easybuttons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py index 2d0d90d..3a3cdbe 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py +++ b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py @@ -278,7 +278,7 @@ class ApplicationLauncher( easyButton ): icon = self.getIcon( Gtk.IconSize.DND ) if icon: iconName, s = icon.get_icon_name() - c = c_char_p(iconName.encode('ascii', 'ignore')) + c = c_char_p(iconName.decode('utf-8', 'ignore').encode('ascii', 'ignore')) gtk.gtk_drag_source_set_icon_name( hash(self), c) self.connectSelf( "focus-in-event", self.onFocusIn )