From 4cf1a6d0de33b5c6788ec2a64194076853ba4857 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Tue, 31 Jan 2023 01:09:47 +0800 Subject: [PATCH] Fix the `app` argument with WSL (#295) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 290b4ec..7ad8122 100644 --- a/index.js +++ b/index.js @@ -120,7 +120,7 @@ const baseOpen = async options => { if (app) { cliArguments.push('-a', app); } - } else if (platform === 'win32' || (isWsl && !isDocker())) { + } else if (platform === 'win32' || (isWsl && !isDocker() && !app)) { const mountPoint = await getWslDrivesMountPoint(); command = isWsl ?