Fixed launching apps containing quotes

This commit is contained in:
Clement Lefebvre 2010-09-23 11:15:09 +01:00
parent 676dba72da
commit 026b550af3

View File

@ -16,7 +16,7 @@ def RemoveArgs(Execline):
# Actually execute the command # Actually execute the command
def Execute( cmd ): def Execute( cmd ):
if isinstance( cmd, str ): if isinstance( cmd, str ):
if (cmd.find("/home/") >= 0) or (cmd.find("su-to-root") >= 0) : if (cmd.find("/home/") >= 0) or (cmd.find("su-to-root") >= 0) or (cmd.find("\"") >= 0):
print "running manually..." print "running manually..."
os.system(cmd + " &") os.system(cmd + " &")
return True return True