Fix package uninstall script

This commit is contained in:
Michael Webster 2013-03-09 20:15:05 -05:00
parent fe82f0f305
commit fdb62cd2b4

View File

@ -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")
@ -32,12 +32,6 @@ class RemoveExecuter(threading.Thread):
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)
cmd = ["sudo", "/usr/sbin/synaptic", "--hide-main-window", \