From 7b615e31860c1ea56ddc5813b81a8f20d012af34 Mon Sep 17 00:00:00 2001 From: Ryooooooga Date: Sat, 9 Oct 2021 16:32:36 +0900 Subject: Fix open link command in Windows --- pkg/config/config_linux.go | 4 ++-- pkg/config/config_windows.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'pkg/config') diff --git a/pkg/config/config_linux.go b/pkg/config/config_linux.go index fe75b7322..dd5708a53 100644 --- a/pkg/config/config_linux.go +++ b/pkg/config/config_linux.go @@ -5,7 +5,7 @@ func GetPlatformDefaultConfig() OSConfig { return OSConfig{ EditCommand: ``, EditCommandTemplate: `{{editor}} {{filename}}`, - OpenCommand: `sh -c "xdg-open {{filename}} >/dev/null"`, - OpenLinkCommand: `sh -c "xdg-open {{link}} >/dev/null"`, + OpenCommand: `xdg-open {{filename}} >/dev/null`, + OpenLinkCommand: `xdg-open {{link}} >/dev/null`, } } diff --git a/pkg/config/config_windows.go b/pkg/config/config_windows.go index fb42689a9..301eecec1 100644 --- a/pkg/config/config_windows.go +++ b/pkg/config/config_windows.go @@ -5,7 +5,7 @@ func GetPlatformDefaultConfig() OSConfig { return OSConfig{ EditCommand: ``, EditCommandTemplate: `{{editor}} {{filename}}`, - OpenCommand: `cmd /c start "" {{filename}}`, - OpenLinkCommand: `cmd /c start "" {{link}}`, + OpenCommand: `start "" {{filename}}`, + OpenLinkCommand: `start "" {{link}}`, } } -- cgit v1.2.3