From fdb62cd2b498592048c545a32368d7952e57c874 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Sat, 9 Mar 2013 20:15:05 -0500 Subject: [PATCH] Fix package uninstall script --- usr/lib/linuxmint/mintMenu/mintRemove.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/mintRemove.py b/usr/lib/linuxmint/mintMenu/mintRemove.py index b94831d..18e87f2 100755 --- a/usr/lib/linuxmint/mintMenu/mintRemove.py +++ b/usr/lib/linuxmint/mintMenu/mintRemove.py @@ -3,7 +3,7 @@ import gi gi.require_version("Gtk", "2.0") -from gi.repository import Gtk, Gdk +from gi.repository import Gtk, Gdk, GObject try: import sys @@ -20,7 +20,7 @@ except Exception, detail: from subprocess import Popen, PIPE -Gdk.threads_init() +GObject.threads_init() # i18n gettext.install("mintmenu", "/usr/share/linuxmint/locale") @@ -31,12 +31,6 @@ class RemoveExecuter(threading.Thread): threading.Thread.__init__(self) self.window_id = window_id self.package = package - - def execute(self, command): - #print "Executing: " + command - os.system(command) - ret = commands.getoutput("echo $?") - return ret def run(self): removePackages = string.split(self.package) @@ -57,7 +51,7 @@ class RemoveExecuter(threading.Thread): f.close() Gtk.main_quit() sys.exit(0) - + class mintRemoveWindow: def __init__(self, desktopFile):