Spritz: allow sys.argv parameters
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/python -O
|
||||
import sys, os
|
||||
spritz_path = " python /usr/lib/entropy/spritz/spritz.py"
|
||||
spritz_path = " /usr/lib/entropy/spritz/spritz.py " + ' '.join(sys.argv[1:])
|
||||
su_cmd = "xterm -e \"su -c '"+spritz_path+"'\""
|
||||
if "--debug" in sys.argv:
|
||||
os.environ['SPRITZ_DEBUG'] = "1"
|
||||
@@ -29,11 +29,11 @@ def setup_env():
|
||||
for item in path:
|
||||
itempath = os.path.join(item,'kdesu')
|
||||
if os.access(itempath,os.X_OK):
|
||||
su_cmd = itempath+spritz_path
|
||||
su_cmd = itempath+' "'+spritz_path+'"'
|
||||
break
|
||||
else:
|
||||
if os.access('/usr/bin/gksu',os.X_OK):
|
||||
su_cmd = '/usr/bin/gksu'+spritz_path
|
||||
su_cmd = '/usr/bin/gksu "'+spritz_path+'"'
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user