Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Update xquartz-beta.rb (#3172)
Browse files Browse the repository at this point in the history
* Update xquartz-beta.rb

Update xquartz-beta to use `system_command`.

* Update xquartz-beta.rb
  • Loading branch information
miccal authored Jan 24, 2017
1 parent d9ad6b9 commit b59774e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Casks/xquartz-beta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
Pathname.new(File.expand_path('~')).join('Library', 'Logs').mkpath

# Set default path to X11 to avoid the need of manual setup
system '/usr/bin/defaults', 'write', 'com.apple.applescript', 'ApplicationMap', '-dict-add', 'X11', 'file://localhost/Applications/Utilities/XQuartz.app/'
system_command '/usr/bin/defaults', args: ['write', 'com.apple.applescript', 'ApplicationMap', '-dict-add', 'X11', 'file://localhost/Applications/Utilities/XQuartz.app/']

# Load & start XServer to avoid the need of relogin
system '/bin/launchctl', 'load', '/Library/LaunchAgents/org.macosforge.xquartz.startx.plist'
system_command '/bin/launchctl', args: ['load', '/Library/LaunchAgents/org.macosforge.xquartz.startx.plist']

# Set automatic Updates for Beta Versions
system 'defaults', 'write', 'org.macosforge.xquartz.X11', 'SUFeedURL', 'http://xquartz.macosforge.org/downloads/sparkle/beta.xml'
system_command '/usr/bin/defaults', args: ['write', 'org.macosforge.xquartz.X11', 'SUFeedURL', 'http://xquartz.macosforge.org/downloads/sparkle/beta.xml']
end

uninstall quit: 'org.macosforge.xquartz.X11',
Expand Down

0 comments on commit b59774e

Please sign in to comment.