My application prints a PDF to a temporary file. How can I open that file with the default application in Python?
I need a solution for
- Windows
- Linux (Ubuntu with Xfce if there’s nothing more general.)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
os.startfile is only available for windows for now, but xdg-open will be available on any unix client running X.