Not sure if this is appropriate here, but I'm not sure where else to put this. If not, please just close it.
So, I installed Defold inside WSL by downloading it from the website and extracting it to a local folder. When I tried using the Open Defold Editor command, it always opened a text editor instead. After some digging I found out that the extension uses xdg-open to open the file, which obviously doesn't work because xdg-open doesn't know about Defold or where its located.
So I searched the internet a bit and found that you can just add a mime-type for the file, create a desktop file and use that as a default for the corresponding mime-type. This works, so I put it into a repository, so others with the same problem can use it as well. (https://github.com/hardliner66/defold-project-mime)
I think it might be a good idea to document this somewhere, so that other users can look up how to fix this.
Not sure if this is appropriate here, but I'm not sure where else to put this. If not, please just close it.
So, I installed Defold inside WSL by downloading it from the website and extracting it to a local folder. When I tried using the
Open Defold Editorcommand, it always opened a text editor instead. After some digging I found out that the extension usesxdg-opento open the file, which obviously doesn't work because xdg-open doesn't know about Defold or where its located.So I searched the internet a bit and found that you can just add a mime-type for the file, create a desktop file and use that as a default for the corresponding mime-type. This works, so I put it into a repository, so others with the same problem can use it as well. (https://github.com/hardliner66/defold-project-mime)
I think it might be a good idea to document this somewhere, so that other users can look up how to fix this.