python - how to open a file with corresponding application from terminal? -
i new linux, great if help me on this!
i want open file, text file using text editor terminal. thing dont want view/edit file. know using cat or vi. wanted open corresponding application , wanted terminal. possible?
i wanted open file gui building. building gui using tkinter python.
so looking command open file utilize in subprocess command.
a repeat of before question, it's hard search if don't know "start" command in windows or "open" on osx. xdg-open linux desktop equivalent.
http://superuser.com/questions/38984/linux-equivalent-command-for-open-command-on-mac-windows
[edit] i'm taking requirement mean "command picture.jpg" should open in image viewer, "command song.mp3" should open in users music player etc. open from terminal, not literally in terminal... if command == xdg-open, should work.
python linux user-interface terminal tkinter
No comments:
Post a Comment