summaryrefslogtreecommitdiff
path: root/portato/plugins/etc_proposals.py
diff options
context:
space:
mode:
authornecoro <>2007-04-20 14:44:45 +0000
committernecoro <>2007-04-20 14:44:45 +0000
commit7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe (patch)
treec14d3a2f65fe0ff5799ba1673a73dc7ff3799d44 /portato/plugins/etc_proposals.py
parent524f67fb5a96f0f50b595023f46895e741654b59 (diff)
downloadportato-7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe.tar.gz
portato-7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe.tar.bz2
portato-7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe.zip
Made qt plugin-ready; lots of documentation
Diffstat (limited to 'portato/plugins/etc_proposals.py')
-rw-r--r--portato/plugins/etc_proposals.py8
1 files changed, 3 insertions, 5 deletions
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)