Re: Tell firefox to quit from a shell script
Mike Viau <email@example.com> writes:
>> On Sat, 9 Apr 2011 16:06:13 -0400 <firstname.lastname@example.org> wrote:
>> > Is there a way I can politely ask firefox to quit, less traumatically
>> > than pkill?
>> I think I answered my own question:
>> wmctrl -c firefox
>> appears to do what I need.
> Does that work (to exit gracefully) if Firefox/Iceweasel is running on
> Gnome or KDE as well?
I don't know, I don't have either of those DE installed. wmctrl appears
to handle a lot of window-manager things that aren't baked into Fluxbox,
but it might not be necessary/compatible with Gnome or KDE.