skratchdot / open-golang

Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.
MIT License
783 stars 65 forks source link

[Windows] "start" executable not found in %PATH% #4

Closed THUNDERGROOVE closed 10 years ago

THUNDERGROOVE commented 10 years ago

Error in open.Start() exec: "start": executable not found in %PATH%

However, running start in both bash and cmd work. Probably and issue with the exec package however I'm not certain.

skratchdot commented 10 years ago

It's probably an issue with this library I would guess. What version of windows are you using? I think I only tested in Vista (which pretty much no one uses at this point).

THUNDERGROOVE commented 10 years ago

Windows 8.1 when I tried it. I could try looking into a fix tomorrow.

appakz commented 10 years ago

@THUNDERGROOVE any luck finding a fix for that? I'm having the same issue.

skratchdot commented 10 years ago

I meant to download a windows 8 vm to check this out. I'm guessing one of the following is true:

  1. 'start' is no longer shipped with windows 8
  2. 'start' has been removed from the default PATH
  3. a different program is used to open the default program in windows 8.
appakz commented 10 years ago

I was able to "trick" this into working by dropping a start.bat into my system32 folder. All it did was "start %1", and that was enough to make work. I'm thinking that maybe "start" used to an actual executable that lived somewhere and now is an alias that only the shell understands, but I'm grasping at straws there.

skratchdot commented 10 years ago

This should be fixed by c47f41e3ae39061da76725981461d79a8c4109b2