diff options
author | necoro <> | 2007-04-25 16:05:46 +0000 |
---|---|---|
committer | necoro <> | 2007-04-25 16:05:46 +0000 |
commit | 28c524e8243f9eb41f2ecb7197e33711727526d9 (patch) | |
tree | 1ac2ddf2cd27411c0e9d634283873a9642ccb131 /portato/plugins/etc_proposals.py | |
parent | 86490cd2c9f7523835ecedf472398845c56b5c0c (diff) | |
download | portato-28c524e8243f9eb41f2ecb7197e33711727526d9.tar.gz portato-28c524e8243f9eb41f2ecb7197e33711727526d9.tar.bz2 portato-28c524e8243f9eb41f2ecb7197e33711727526d9.zip |
added noroot-option
Diffstat (limited to '')
-rw-r--r-- | portato/plugins/etc_proposals.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/portato/plugins/etc_proposals.py b/portato/plugins/etc_proposals.py index a064fff..6cf53ad 100644 --- a/portato/plugins/etc_proposals.py +++ b/portato/plugins/etc_proposals.py @@ -16,6 +16,8 @@ from portato.backend import system from subprocess import Popen from etcproposals.etcproposals_lib import EtcProposals, __version__ +PROG="/usr/sbin/etc-proposals" + class PortatoEtcProposals(EtcProposals): """Subclassed EtcProposals using portato.backend.system during __init__.""" @@ -34,15 +36,15 @@ def etc_prop (*args, **kwargs): debug(l,"files to update") if l > 0: - Popen("etc-proposals") + Popen(PROG) else: - Popen(["etc-proposals", "--frontend", "gtk", "--fastexit"]) + Popen([PROG, "--frontend", "gtk", "--fastexit"]) def etc_prop_menu (*args, **kwargs): if am_i_root(): if float(__version__) < 1.1: - Popen("etc-proposals") + Popen(PROG) else: - Popen(["etc-proposals", "--frontend", "gtk"]) + Popen([PROG, "--frontend", "gtk"]) else: debug("Cannot start etc-proposals. Not root!", error = 1) |