You are not logged in.

#1 2018-08-24 14:34:46

ohm
Member
From: Germany
Registered: 2016-08-29
Posts: 19

Gently close Firefox (and others) before shutdown

Hi there,

Problem:
When shutting down the system without closing Firefox before, FF starts with error messages
next time (session restore). There seems to be a problem with SIGTERM and some discussion about
that some years ago can be found here: [1] and [2].
The Solution included some AUR package which is longer availabe (xkillall).
I use tiling WM like i3 and dwm which are started using startx and both show the same symptoms.
Is there any up to date solution to that problem that I have not found here on the forums or elsewhere ?

Thanks for your help!
ohm


[1] https://bbs.archlinux.org/viewtopic.php?id=192454
[2] https://bbs.archlinux.org/viewtopic.php?id=179489

Offline

#2 2018-08-24 15:23:47

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Gently close Firefox (and others) before shutdown

Here is an archived copy of the "xkillall" package, made my Arch Linux users:

https://github.com/aur-archive/xkillall

I haven't tested it, but it looks like it should build just fine. So it's a starting place! smile

Offline

#3 2018-08-25 18:23:36

ohm
Member
From: Germany
Registered: 2016-08-29
Posts: 19

Re: Gently close Firefox (and others) before shutdown

@drcouzelis

thanks for the hint to archived AUR packages.
I just built the package and installed it. Still have to figure out how to shutdown with
xkillall being used.

ohm

Offline

#4 2018-08-25 18:28:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: Gently close Firefox (and others) before shutdown


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2018-08-25 18:43:47

ohm
Member
From: Germany
Registered: 2016-08-29
Posts: 19

Re: Gently close Firefox (and others) before shutdown

didnt remember it was that easy, thanks for the quick response,
I now have just added xkillall to .xinitrc:

exec i3
xkillall

Hope there is no "&" missing following "exec i3"...
So for future use of .xinitrc: is it right to substitute xkillall with something like "shudown_script.sh" which contains
xkillall and other commands or do these command have to be added to .xinitrc ?

Thanks for all so far!

Offline

#6 2018-08-25 18:45:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: Gently close Firefox (and others) before shutdown

Please actually read the link that both you and I have linked to: using `exec` for your WM will prevent any further lines (including xkillall) from ever executing.

As for your other question - either one one would, but I  don't see why you'd ever want to create a separate script.  Xinitrc is a shell script - put whatever commands you want to run there.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2018-08-25 19:01:29

ohm
Member
From: Germany
Registered: 2016-08-29
Posts: 19

Re: Gently close Firefox (and others) before shutdown

ah again, reading has helped me, sorry for the rush.
I will just keep adding commands to .xinitrc like I did before, just wasn't sure it made any difference when it comes to
commands that follow the startup command for the WM.
No more "exec" in the .xinitrc smile

Offline

Board footer

Powered by FluxBB