I'm developing a file system manager in python and I want to make so that when the user clicks a file, it opens in the screen, and if possible I want to implement an open with feature. How can I do this?
I don't even know where to start looking for an answer, because when I Google for it all I find is the open function or the with statement which reads the file to memory which is not what I want. I want to be able to, if the file is an image, use a software installed in the pc, like photos or photoshop to open the image or if it's a spreadsheet use excel to open it.
Note: I'm using Windows, if possible, I'd like a way that works on Windows, Mac and Linux.