зеркало из https://github.com/mozilla/stoneridge.git
Make something that will actually work for srworker on osx
Instead of running some login agent to open a command file (or many other things I tried), we have to create a terminal profile that will run stone ridge, set that profile as the default, and add the terminal as a startup item. The shell script added in this commit contains the commands to do that.
This commit is contained in:
Родитель
ecedbbed1f
Коммит
44831b814b
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>org.mozilla.srworker</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/bin/open</string>
|
||||
<string>/Users/hurley/srhome/stoneridge/osx/srworker.command</string>
|
||||
</array>
|
||||
<key>KeepAlive</key>
|
||||
<false/>
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/hurley/srhome/stoneridge</string>
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/usr/local/share/python:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1 +0,0 @@
|
|||
PYTHONPATH=/Users/hurley/srhome/stoneridge /usr/local/bin/python /Users/hurley/srhome/stoneridge/srworker.py --config /Users/hurley/srhome/stoneridge.ini --log /Users/hurley/srhome/srworker.log
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
defaults write com.apple.Terminal 'Window Settings' -dict-add 'Stone Ridge' '{ CommandString = "/usr/local/bin/python /Users/hurley/srhome/stoneridge/srworker.py --config /Users/hurley/srhome/stoneridge.ini --log /Users/hurley/srhome/srworker.log"; ProfileCurrentVersion = "2.02"; RunCommandAsShell = 0; name = "Stone Ridge"; type = "Window Settings"; }'
|
||||
defaults write com.apple.Terminal 'Default Window Settings' 'Stone Ridge'
|
||||
defaults write com.apple.Terminal 'Startup Window Settings' 'Stone Ridge'
|
||||
osascript -e 'tell app "System Events"
|
||||
make login item at end with properties {path:"/Applications/Utilities/Terminal.app", hidden:false}
|
||||
end tell'
|
Загрузка…
Ссылка в новой задаче