I build a tkinter app that is acting as a default browser.
The problem is that I can not catch the system as it passes the URL
to the default browser:
cmd_param = sys.argv
if len(cmd_param) > 1:
paramter = cmd_param[1]
else:
parameter = "itcomserve.de"
I would expect that sys.argv[1] delivers the URL parameter.
but I am just getting an sys.argv[0] wich is the program itself.
any advice on this, I would greatly appreciate, thx in advance …
detail explanation:
the GUI above produced with pyinstaller, has a list of my browser on my system. I registered this app as my standard browser. As I click an URL on my system e.g. from thunderbird, this program starts and should show that URL as a parameter in the top input field. I was hoping to get this URL parameter by sys.arg, but sys argv provides only sys.argv[0] which is the program itself. sys.argv1 is missing as index.