How can I prevent Firefox from opening gedit for a python3 cgi script
The script begins with either one of the following:
- ! /usr/local/bin/python3
or
- ! /usr/local/lib/python3
The script begins with either one of the following:
#! /usr/local/bin/python3
or
#! /usr/local/lib/python3
Chosen solution
Firefox can't process python files, so will always open the file in an external application. You would have to set up a local server and access the page that way if you want to process such a script before passing the result to Firefox.
Read this answer in context 👍 0All Replies (1)
Chosen Solution
Firefox can't process python files, so will always open the file in an external application. You would have to set up a local server and access the page that way if you want to process such a script before passing the result to Firefox.