Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Macのデフォルトブラウザを知る
`defaults read com.apple.LaunchServices | grep -C3 'LSHandlerURLScheme = http;' | grep LSHandlerRoleAll | uniq` =~ /"(.*)"/
browser =
case $1
when /safari/i then "Safari"
when /chrome/i then "Chrome"
else "Firefox"
end
@masui

This comment has been minimized.

Copy link
Owner Author

@masui masui commented Nov 4, 2014

コマンドラインからAPIを叩けるといいのだけど...

@shao1555

This comment has been minimized.

Copy link

@shao1555 shao1555 commented Nov 4, 2014

Opera を設定しても 'Firefox' になってしまう、、悲しみ。

@masui

This comment has been minimized.

Copy link
Owner Author

@masui masui commented Nov 5, 2014

Operaって何ですか

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment