From 7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe Mon Sep 17 00:00:00 2001 From: necoro <> Date: Fri, 20 Apr 2007 14:44:45 +0000 Subject: Made qt plugin-ready; lots of documentation --- portato/plugins/etc_proposals.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'portato/plugins/etc_proposals.py') diff --git a/portato/plugins/etc_proposals.py b/portato/plugins/etc_proposals.py index cdf0a87..a064fff 100644 --- a/portato/plugins/etc_proposals.py +++ b/portato/plugins/etc_proposals.py @@ -13,8 +13,6 @@ from portato.helper import debug, am_i_root from portato.backend import system -from portato.gui.gtk.dialogs import not_root_dialog - from subprocess import Popen from etcproposals.etcproposals_lib import EtcProposals, __version__ @@ -41,10 +39,10 @@ def etc_prop (*args, **kwargs): Popen(["etc-proposals", "--frontend", "gtk", "--fastexit"]) def etc_prop_menu (*args, **kwargs): - if not am_i_root(): - not_root_dialog() - else: + if am_i_root(): if float(__version__) < 1.1: Popen("etc-proposals") else: Popen(["etc-proposals", "--frontend", "gtk"]) + else: + debug("Cannot start etc-proposals. Not root!", error = 1) -- cgit v1.2.3-54-g00ecf