Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-12-10 Thread Andrei POPESCU
On Lu, 22 nov 21, 11:39:46, Greg Wooledge wrote: > > That's as far as I got. If the OP wants to try writing a systemd --user > unit file for their unison thingy, and see if that starts and stops in > a way that they find acceptable, that would be a cool experiment. It's a good way to run

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-12-10 Thread Andrei POPESCU
On Ma, 23 nov 21, 09:28:39, David Wright wrote: > On Tue 23 Nov 2021 at 07:51:32 (-0500), Greg Wooledge wrote: > > On Tue, Nov 23, 2021 at 12:05:37PM +, Jonathan Dowland wrote: > > > On Mon, Nov 22, 2021 at 11:39:46AM -0500, Greg Wooledge wrote: > > > > I don't know the exact time that I

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-23 Thread David Wright
On Tue 23 Nov 2021 at 07:51:32 (-0500), Greg Wooledge wrote: > On Tue, Nov 23, 2021 at 12:05:37PM +, Jonathan Dowland wrote: > > On Mon, Nov 22, 2021 at 11:39:46AM -0500, Greg Wooledge wrote: > > > I don't know the exact time that I closed the login shell on tty2. It > > > *could* have been

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-23 Thread David Wright
On Mon 22 Nov 2021 at 16:14:37 (-0500), Greg Wooledge wrote: > On Mon, Nov 22, 2021 at 02:45:28PM -0600, David Wright wrote: > > I implied in my first post that a background job started in .xsession > > would be killed when the X server terminated, be that by reaching the > > end of the .xsession

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-23 Thread Greg Wooledge
On Tue, Nov 23, 2021 at 12:05:37PM +, Jonathan Dowland wrote: > On Mon, Nov 22, 2021 at 11:39:46AM -0500, Greg Wooledge wrote: > > I don't know the exact time that I closed the login shell on tty2. It > > *could* have been at exactly 11:19:00 but that seems like a suspiciously > > round

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-23 Thread Jonathan Dowland
On Mon, Nov 22, 2021 at 11:39:46AM -0500, Greg Wooledge wrote: I don't know the exact time that I closed the login shell on tty2. It *could* have been at exactly 11:19:00 but that seems like a suspiciously round number (and a suspiciously long time after I started the service). You don't, but

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-22 Thread Greg Wooledge
On Mon, Nov 22, 2021 at 02:45:28PM -0600, David Wright wrote: > I implied in my first post that a background job started in .xsession > would be killed when the X server terminated, be that by reaching the > end of the .xsession script (if you prefer that expression), or by > killing the X server

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-22 Thread David Wright
On Mon 22 Nov 2021 at 10:58:28 (-0500), Greg Wooledge wrote: > On Mon, Nov 22, 2021 at 03:25:02PM +, 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

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-22 Thread David Wright
On Mon 22 Nov 2021 at 07:31:04 (-0500), Greg Wooledge wrote: > On Sun, Nov 21, 2021 at 11:39:53PM -0600, David Wright wrote: > > On Sun 21 Nov 2021 at 14:16:26 (-0500), Greg Wooledge wrote: > > > So then, it would look something like this: > > > > > > your unison thing & > > > unisonPID=$! > > >

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-22 Thread Greg Wooledge
On Mon, Nov 22, 2021 at 10:58:28AM -0500, Greg Wooledge wrote: > (Unless someone can figure out how to make systemd do this.) Google found which is the first time I've ever seen an attempt at an end user's guide for systemd --user services. So, I

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-22 Thread Greg Wooledge
On Mon, Nov 22, 2021 at 03:25:02PM +, 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

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-22 Thread Musbur
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

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-22 Thread Greg Wooledge
On Sun, Nov 21, 2021 at 11:39:53PM -0600, David Wright wrote: > On Sun 21 Nov 2021 at 14:16:26 (-0500), Greg Wooledge wrote: > > So then, it would look something like this: > > > > your unison thing & > > unisonPID=$! > > other things you want to run > > magic MATE start command > > kill

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-21 Thread David Wright
On Sun 21 Nov 2021 at 14:16:26 (-0500), Greg Wooledge wrote: > On Sun, Nov 21, 2021 at 07:18:23PM +0100, Arkadiusz Dabrowski wrote: > > Have you considered using my suggestion? Put these two lines in .xsession: > > > > > > . /etc/X11/Xsession > > > pkill unison > > > > > > Keep your .xsessionrc

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-21 Thread Arkadiusz Dabrowski
niedz., 21 lis 2021 o 20:16 Greg Wooledge napisał(a): > > Damn. I was hoping I could come up with a nice, simple way for a novice > user to introduce a .xsession file and reap the benefits thereof, without > having to undergo all of the complexity of writing a full-blown .xsession > file. > >

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-21 Thread Greg Wooledge
On Sun, Nov 21, 2021 at 07:18:23PM +0100, Arkadiusz Dabrowski wrote: > Have you considered using my suggestion? Put these two lines in .xsession: > > > > . /etc/X11/Xsession > > pkill unison > > > > Keep your .xsessionrc which starts the unison program. (Or you could > > move it here, later, but

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-21 Thread Arkadiusz Dabrowski
Have you considered using my suggestion? Put these two lines in .xsession: > > . /etc/X11/Xsession > pkill unison > > Keep your .xsessionrc which starts the unison program. (Or you could > move it here, later, but for now I'm simply trying to do the bare > minimum needed to achieve a working

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-20 Thread Greg Wooledge
On Sat, Nov 20, 2021 at 09:46:24PM +0100, Arkadiusz Dabrowski wrote: > Unfortunately, the solution with .xsession file doesn't work. > I resorted to something very simplistic: > > > exec /usr/bin/marco > > > Note: I use mate desktop with marco wm. I doubt very much that this is the correct

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-20 Thread Arkadiusz Dabrowski
Unfortunately, the solution with .xsession file doesn't work. I resorted to something very simplistic: exec /usr/bin/marco Note: I use mate desktop with marco wm. Started with "exec" according to Debian documentation: https://wiki.debian.org/Xsession They also use some other stuff, I'm not

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-19 Thread Brian
On Thu 18 Nov 2021 at 15:46:48 -0500, Greg Wooledge wrote: > On Thu, Nov 18, 2021 at 02:34:52PM -0600, David Wright wrote: > > On Wed 17 Nov 2021 at 22:39:21 (+0100), Arkadiusz Dabrowski wrote: > > > > > I have a problem with unison sync termination when it is started from > > > .xsessionrc. > >

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-18 Thread Arkadiusz Dabrowski
Thank You all guys for help! If systemd feature is not an option I'll try a .xession solution. Looks promising.

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-18 Thread Greg Wooledge
On Thu, Nov 18, 2021 at 09:21:34PM +, Jonathan Dowland wrote: > On Thu, Nov 18, 2021 at 03:46:48PM -0500, Greg Wooledge wrote: > > (I still wonder whether systemd offers anything relevant here. And if > > not, what the hell *is* the point of systemctl --user? I've never used > > it, nor

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-18 Thread Jonathan Dowland
I'd echo Greg in that the simplest answer might lie with using systemd's facility for this, but, On Thu, Nov 18, 2021 at 02:34:52PM -0600, David Wright wrote: # ~/.xsession contents … # now start your clients and programs, all backgrounded with & ^^ This would be the point at which OP would

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-18 Thread Jonathan Dowland
On Thu, Nov 18, 2021 at 03:46:48PM -0500, Greg Wooledge wrote: (I still wonder whether systemd offers anything relevant here. And if not, what the hell *is* the point of systemctl --user? I've never used it, nor found any reason to use it. Yet.) systemd certainly does offer something here.

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-18 Thread Mark Neyhart
On 11/17/21 12:39 PM, Arkadiusz Dabrowski wrote: > Hi all > I have a problem with unison sync termination when it is started from > .xsessionrc. > It works flawlessly but when I log out it is orphaned and not terminated. > I start it like this: > nice -n18 ionice -c2 -n7 unison unison_profile

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-18 Thread Greg Wooledge
On Thu, Nov 18, 2021 at 02:34:52PM -0600, David Wright wrote: > On Wed 17 Nov 2021 at 22:39:21 (+0100), Arkadiusz Dabrowski wrote: > > > I have a problem with unison sync termination when it is started from > > .xsessionrc. > > It works flawlessly but when I log out it is orphaned and not

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-18 Thread David Wright
On Wed 17 Nov 2021 at 22:39:21 (+0100), Arkadiusz Dabrowski wrote: > I have a problem with unison sync termination when it is started from > .xsessionrc. > It works flawlessly but when I log out it is orphaned and not terminated. > I start it like this: > nice -n18 ionice -c2 -n7 unison

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-18 Thread Greg Wooledge
On Wed, Nov 17, 2021 at 08:21:00PM -0500, songbird wrote: > Arkadiusz Dabrowski wrote: > ... > > It works flawlessly but when I log out it is orphaned and not terminated. > > I start it like this: > > nice -n18 ionice -c2 -n7 unison unison_profile &>/dev/null & > > Once started the parent is

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-18 Thread songbird
Arkadiusz Dabrowski wrote: ... > It works flawlessly but when I log out it is orphaned and not terminated. > I start it like this: > nice -n18 ionice -c2 -n7 unison unison_profile &>/dev/null & > Once started the parent is x-session-manager and they the same process > group. > What can I do to

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-17 Thread Brian
On Wed 17 Nov 2021 at 22:39:21 +0100, Arkadiusz Dabrowski wrote: > Hi all > I have a problem with unison sync termination when it is started from > .xsessionrc. .xsessionrc is for stting environment variables for an X session. This your intentio? -- Brian.

Re: How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-17 Thread Greg Wooledge
On Wed, Nov 17, 2021 at 10:39:21PM +0100, Arkadiusz Dabrowski wrote: > I have a problem with unison sync termination when it is started from > .xsessionrc. > It works flawlessly but when I log out it is orphaned and not terminated. > I start it like this: > nice -n18 ionice -c2 -n7 unison

How to cause a process started in .xsessionrc to terminate with x-session termination?

2021-11-17 Thread Arkadiusz Dabrowski
Hi all I have a problem with unison sync termination when it is started from .xsessionrc. It works flawlessly but when I log out it is orphaned and not terminated. I start it like this: nice -n18 ionice -c2 -n7 unison unison_profile &>/dev/null & Once started the parent is x-session-manager and