Fixed execute problems with su-to-root

This commit is contained in:
Clement Lefebvre 2009-12-15 11:28:28 +00:00
parent 2d52a82a69
commit a000ed1a2a
2 changed files with 7 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
mintmenu (4.9.3) helena; urgency=low
* Fixed: https://bugs.launchpad.net/linuxmint/+bug/496730
-- Clement Lefebvre <root@linuxmint.com> Tue, 15 Dec 2009 11:27:00 +0000
mintmenu (4.9.2) helena; urgency=low
* Fixed: https://bugs.launchpad.net/mintmenu/+bug/490174

View File

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