Skip to content

Commit ba4654c

Browse files
author
Guoye Zhang
committed
Fix mac_helper permission (XX-net#4551)
1 parent e1a20c6 commit ba4654c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/default/launcher/mac_tray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ def setupHelper():
219219
except:
220220
rmCommand = "rm \\\"%s\\\"" % helper_path
221221
cpCommand = "cp \\\"%s\\\" \\\"%s\\\"" % (os.path.join(current_path, 'mac_helper'), helper_path)
222-
chmodCommand = "chmod 4755 \\\"%s\\\"" % helper_path
223222
chownCommand = "chown root \\\"%s\\\"" % helper_path
224-
executeCommand = 'do shell script "%s;%s;%s;%s" with administrator privileges' % (rmCommand, cpCommand, chmodCommand, chownCommand)
223+
chmodCommand = "chmod 4755 \\\"%s\\\"" % helper_path
224+
executeCommand = 'do shell script "%s;%s;%s;%s" with administrator privileges' % (rmCommand, cpCommand, chownCommand, chmodCommand)
225225

226226
xlog.info("try setup helper:%s", executeCommand)
227227
subprocess.call(['osascript', '-e', executeCommand])

0 commit comments

Comments
 (0)