factor/extra/webbrowser/linux/linux.factor

14 lines
316 B
Factor
Raw Normal View History

! Copyright (C) 2011 John Benediktsson
! See http://factorcode.org/license.txt for BSD license
USING: formatting io.launcher present system urls webbrowser ;
IN: webbrowser.unix
M: unix open-file ( path -- )
"gnome-open \"%s\"" sprintf try-process ;
M: unix open-url ( url -- )
>url present open-file ;