From fb1d693ccc3227b6da5010c28bfae582e11575db Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Sun, 6 Aug 2006 19:41:26 +0000 Subject: * fix a bug causing the plugin to be loaded twice * clean the gconfterminal plugin git-svn-id: file:///home/lennart/svn/public/service-discovery-applet/trunk@112 3be567f1-68ff-0310-b24a-ad7cc433fd2f --- plugins/gconfterminal.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/gconfterminal.py b/plugins/gconfterminal.py index 54d8961..559476f 100644 --- a/plugins/gconfterminal.py +++ b/plugins/gconfterminal.py @@ -14,6 +14,10 @@ from sdapplet.pluginutils import * +import os +import pwd +import subprocess + try: import gettext gettext.bindtextdomain("service-discovery-applet", "/usr/share/locale") @@ -22,14 +26,11 @@ try: import pygtk pygtk.require('2.0') import gtk - import os - import pwd - import subprocess import gconf import gnome except ImportError, e: error_msg(_("A required python module is missing!\n%s") % (e)) - sys.exit() + os._exit() class plugin_gnometerminal: def __init__(self): @@ -125,7 +126,7 @@ class plugin_gnometerminal: cmdline = terminal.split(" ") cmdline.extend(sshline.split(" ")) print cmdline - pid = subprocess.Popen(cmdline).pid + subprocess.Popen(cmdline) def load(): return plugin_gnometerminal() -- cgit