Seems more useful overall and matches how it already works on Windows.
IN: webbrowser.linux
M: linux open-file ( path -- )
- present "xdg-open" swap 2array try-process ;
+ present "xdg-open" swap 2array run-detached drop ;
IN: webbrowser.macosx
M: macosx open-file ( path -- )
- present "open" swap 2array try-process ;
+ present "open" swap 2array run-detached drop ;
HELP: open-file
{ $values { "path" string } }
{ $description
- "Open a specified file or directory using the default "
- "application, similar to double-clicking the file's icon."
+ "Open a specified file or directory in a detached process using "
+ "the default application, similar to double-clicking the file's icon."
} ;
HELP: open-url