“Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows

I’m new in here and it’s my first post.

I have a problem with Bash on Ubuntu on Windows. If I type “open (filename)” on Mac terminal, it opens the file with the right program but if I try to use it on Windows bash, it says: “Couldn’t find a file descriptor referring to the console”.

I have also tried xdg-open and gnome-open but none of them works. Can someone explain how to fix the issue and how open command works?
Thanks in advance!

Leave a Comment