Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 11 lines (10 sloc) 0.278 kb
1 2 3 4 5 6 7 8 9 10 11
%% -*- Mode: Erlang; tab-width: 4 -*-
-module(agner_utils).
-export([launch_browser/1]).

launch_browser(URL) ->
    case os:type() of
        {unix, darwin} ->
            os:cmd("open " ++ URL);
        {unix, linux} ->
            os:cmd("firefox " ++ URL ++ " &")
    end.
Something went wrong with that request. Please try again.