I have created a couple of Custom URI Schemes namely start and stop for launching and stopping desktop applications from browsers. I want to execute the start script on browser start-up and stop script on browser close.
1) For running the start script on browser starting, I have planned to set the browsers default homepage to the start script.
I have implemented sample swt browser application, it's working in windows operating system, but the same code I have tested in linux operating system, browser is opening but window.close() function is not working in linux.
I am wondering if there is a way to easily reset a shell (especially dedicated for a job) to a fresh clean shell, but does not need to close and open a new shell?
The reason I am asking it is because I work in some jobs that update their environments frequently (like twice a day), and I have so many tabs/shells open, so I have to rename the tag for a particular task.
I had a python script running successfully. The .py script would open a headless browser(pyvirtualdisplay & xvfb) and perform a task and then close the browser. I had an issue with xvfb processes being left open after the script is run. After its run many times they would tend to accumulate. Periodically I would run a killall command through ssh shell to kill the stagnant xvfb processes.