Hello everyone,
I have a question about the webbrowser module.
A friend of mine wrote a small script that uses the webbrowser module, but to close it the code uses killall like so.
PHP Code:
if (count % 20)== 0:
commands.getoutput('killall firefox')
So basically after 20 tabs are open Firefox closes.
It's fine and does close but when you close it that way the next time you open Firefox it wants to know if it should restore the session.
Is there a way that would close it properly, as if I just closed it by clicking on the x in the top corner?
I have read the documentation and although I can find everything about opening a browser, I can't find anything about closing them.
Is this possible to do?
Any help is appreciated.
Thank you.
ps. It isn't super important, the script is more of a project done for fun, but I would still like to know if there is a way to do it.
Thanks again.
Bookmarks