Fix launching apps which use su-to-root
This was removed by mistake during the port to GTK3.
This commit is contained in:
parent
b37564a4cc
commit
2373274304
@ -23,7 +23,7 @@ def Execute( cmd , commandCwd=None):
|
|||||||
cwd = tmpCwd
|
cwd = tmpCwd
|
||||||
|
|
||||||
if isinstance( cmd, str ) or isinstance( cmd, unicode):
|
if isinstance( cmd, str ) or isinstance( cmd, unicode):
|
||||||
if (cmd.find("ubiquity") >= 0) or (cmd.find("/home/") >= 0) or (cmd.find("xdg-su") >= 0) or (cmd.find("\"") >= 0):
|
if (cmd.find("ubiquity") >= 0) or (cmd.find("/home/") >= 0) or (cmd.find("su-to-root") >= 0) or (cmd.find("xdg-su") >= 0) or (cmd.find("\"") >= 0):
|
||||||
print "running manually..."
|
print "running manually..."
|
||||||
try:
|
try:
|
||||||
os.chdir(cwd)
|
os.chdir(cwd)
|
||||||
|
Loading…
Reference in New Issue
Block a user