Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #242332
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: How to cause a process started in .xsessionrc to terminate with x-session termination? |
| Date | 2021-11-22 21:50 +0100 |
| Message-ID | <Dmoqd-3GG-3@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <DlgXM-4q7-3@gated-at.bofh.it> <DlFt9-248-19@gated-at.bofh.it> <DlFW9-2sS-1@gated-at.bofh.it> <Dmjqx-Ko-1@gated-at.bofh.it> <DmjTA-TP-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon 22 Nov 2021 at 10:58:28 (-0500), Greg Wooledge wrote: > On Mon, Nov 22, 2021 at 03:25:02PM +0000, Musbur wrote: > > Am 20.11.2021 22:19 schrieb Greg Wooledge: > > > On Sat, Nov 20, 2021 at 09:46:24PM +0100, Arkadiusz Dabrowski wrote: > > > > Started with "exec" according to Debian documentation: > > > > https://wiki.debian.org/Xsession > > > > > > You're cargo-culting stuff with zero understanding. That's not going > > > to help. > > > > > > If you don't know how shell scripts work, if you don't know what the > > > "exec" command does... then this is going to be quite difficult for you. > > > > I know the difference between using exec and not using exec, but I've never > > understood why Debian explicitly suggests using exec to start the wm in > > .xsession. Maybe to release resources held by the shell instance? > > Basically, yeah. There's no reason to keep the shell around waiting > on the window manager, if the shell isn't going to do anything after > the WM terminates. So, for 95% of cases, that's what you want. > > The OP in this thread is an exception. They want the shell to hang > around so it can kill a process after the WM terminates. A .xsession > file without "exec" on the WM seems to be the most obvious way to do it. > > (Unless someone can figure out how to make systemd do this.) I haven't looked for differences that might have arisen since systemd entered upon the scene (and I've yet to work my way through your addition to this subthread), but in looking through /etc/X11/ to see what x-session-manager might be, I see that Xsession.d has a twin, Xreset.d, called from Xreset. This says it's for "when a user log[s] out from a display manager", which might be what the OP is doing "when I log out [and] it [unison] is orphaned and not terminated". I have no idea whether it would benefit to start unison from an Xsession.d/ file and stop it in Xreset.d/, nor how the two might communicate information. An Xreset.d/ that's populated with examples might suggest some ideas. However, I would have thought that the sequence start something in Xsession.d/ run x-session-manager from 99x11-common_start stop something in Xreset.d/ was closer to the spirit of Debian's /etc/X11/ than start something in .xsession run x-session-manager from .xsession stop something in .xsession but maybe I'm wrong. DMs and DEs just aren't my thing. Anyway, you're less likely to accidentally create a loop. Sorry. Cheers, David.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to cause a process started in .xsessionrc to terminate with x-session termination? Arkadiusz Dabrowski <ardabro@gmail.com> - 2021-11-17 22:40 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-17 23:10 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Brian <ad44@cityscape.co.uk> - 2021-11-18 00:50 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-18 14:10 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? songbird <songbird@anthive.com> - 2021-11-18 14:10 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? David Wright <deblis@lionunicorn.co.uk> - 2021-11-18 21:40 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-18 21:50 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Jonathan Dowland <jon+debian-user@dow.land> - 2021-11-18 22:30 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-18 23:00 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Arkadiusz Dabrowski <ardabro@gmail.com> - 2021-11-18 23:10 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Brian <ad44@cityscape.co.uk> - 2021-11-19 19:40 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Arkadiusz Dabrowski <ardabro@gmail.com> - 2021-11-20 21:50 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-20 22:20 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Arkadiusz Dabrowski <ardabro@gmail.com> - 2021-11-21 19:20 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-21 20:20 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Arkadiusz Dabrowski <ardabro@gmail.com> - 2021-11-21 20:50 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? David Wright <deblis@lionunicorn.co.uk> - 2021-11-22 06:50 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-22 13:40 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? David Wright <deblis@lionunicorn.co.uk> - 2021-11-22 21:50 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Musbur <musbur@posteo.org> - 2021-11-22 16:30 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-22 17:00 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-22 17:50 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Jonathan Dowland <jon+debian-user@dow.land> - 2021-11-23 13:10 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-23 14:00 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? David Wright <deblis@lionunicorn.co.uk> - 2021-11-23 16:30 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-12-10 14:40 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-12-10 15:10 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? David Wright <deblis@lionunicorn.co.uk> - 2021-11-22 21:50 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Greg Wooledge <greg@wooledge.org> - 2021-11-22 22:20 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? David Wright <deblis@lionunicorn.co.uk> - 2021-11-23 16:30 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Jonathan Dowland <jon+debian-user@dow.land> - 2021-11-18 22:30 +0100
Re: How to cause a process started in .xsessionrc to terminate with x-session termination? Mark Neyhart <Mark.Neyhart@akleg.gov> - 2021-11-18 22:20 +0100
csiph-web