Merge pull request #22 from higebu/master
Patch for bug #1127710 (https://bugs.launchpad.net/linuxmint/+bug/1127710)
This commit is contained in:
commit
2af2a7ec81
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
@ -15,7 +14,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 ) or isinstance( cmd, unicode):
|
||||||
if (cmd.find("/home/") >= 0) or (cmd.find("su-to-root") >= 0) or (cmd.find("\"") >= 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 + " &")
|
||||||
|
Loading…
Reference in New Issue
Block a user