url-open icon indicating copy to clipboard operation
url-open copied to clipboard

Make WSL open URL by Windows `cmd` command and disable checking executable

Open dunix241 opened this issue 1 year ago • 1 comments

Hello there,

It's me who opened this issue. I have altered the "app: default" behavior to handle opening the URL when using WSL to be open in a Windows browser by having the command cmd.exe /C start. Also, I have removed the condition to check if the command is executable to allow that cmd.exe /C start.

https://github.com/sontungexpt/url-open/blob/9f8f4a56ac709f26aa17d8ef921b272bf2262a30/lua/url-open/modules/handlers.lua#L109

Thank you.

dunix241 avatar Aug 25 '24 10:08 dunix241

I've reviewed your pull request but i think we should't remove the excuation check until there's new logic to prevent reopening when any command runs otherwise it may open multiple times

sontungexpt avatar Oct 27 '25 09:10 sontungexpt