remote control firefox quit
by Skaperen from LinuxQuestions.org on (#5B3XD)
i'm looking for a way to remotely (from the same user or from root, in both cases on the same system) cause firefox to cleanly quit just as if had done a quit from its menu or had closed the last tab.
when firefox restarts after a clean quit i starts up with just one tab open to the default page or just as many tabs a there are given urls for urks given on the command line. when firefox restarts after an abrupt exit, it attempts to re-open every page that was previously open.
i'd like to avoid the re-open scenario after doing an automated quit from a running script not in the same session. it is easy to get the re-open scenario by just killing to firefox process or sending a SIGTERM like a system shutdown does. i just want to be able to take down every instance of firefox without a re-open when it restarts.


when firefox restarts after a clean quit i starts up with just one tab open to the default page or just as many tabs a there are given urls for urks given on the command line. when firefox restarts after an abrupt exit, it attempts to re-open every page that was previously open.
i'd like to avoid the re-open scenario after doing an automated quit from a running script not in the same session. it is easy to get the re-open scenario by just killing to firefox process or sending a SIGTERM like a system shutdown does. i just want to be able to take down every instance of firefox without a re-open when it restarts.