Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 278 Bytes
%% -*- 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.