From d12c03f759a92cacc89f13a08d733cf17e0e4429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Mon, 22 Aug 2016 02:02:22 +0200 Subject: [PATCH] webbrowser.windows: using absolute-path to make opening relative paths work --- basis/webbrowser/windows/windows.factor | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/basis/webbrowser/windows/windows.factor b/basis/webbrowser/windows/windows.factor index ab88c3e5ce..2ec409eddd 100644 --- a/basis/webbrowser/windows/windows.factor +++ b/basis/webbrowser/windows/windows.factor @@ -1,11 +1,9 @@ ! Copyright (C) 2011 John Benediktsson ! See http://factorcode.org/license.txt for BSD license - -USING: kernel present system webbrowser windows.shell32 +USING: io.pathnames kernel present system webbrowser windows.shell32 windows.user32 ; - IN: webbrowser.windows M: windows open-file ( path -- ) - [ f "open" ] dip present f f + absolute-path [ f "open" ] dip present f f SW_SHOWNORMAL ShellExecute drop ;