From b59774e835631b80c1312e6e99232b86920bf5a2 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Tue, 24 Jan 2017 13:42:49 +0800 Subject: [PATCH] Update xquartz-beta.rb (#3172) * Update xquartz-beta.rb Update xquartz-beta to use `system_command`. * Update xquartz-beta.rb --- Casks/xquartz-beta.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Casks/xquartz-beta.rb b/Casks/xquartz-beta.rb index 12c2178a9..ce3acefa6 100644 --- a/Casks/xquartz-beta.rb +++ b/Casks/xquartz-beta.rb @@ -15,13 +15,13 @@ cask 'xquartz-beta' do 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',