Re: [PATCH] Update environment when switching sessions

2015-05-07 Thread Nicholas Marriott
nd. > > Attached is a revised version of the patch. > > Si > >From b572f6168f98cf8745f210dfe8eaa93ecc3e4704 Mon Sep 17 00:00:00 2001 > From: Si Beaumont > Date: Thu, 5 Feb 2015 10:28:41 + > Subject: [PATCH] Update environment when switching sessions > > --- > cmd-switch-client.

Re: [PATCH] Update environment when switching sessions

2015-04-13 Thread Nicholas Marriott
probably, thanks. it looks ok but i'm not sure if it is a good idea On Mon, Apr 13, 2015 at 09:13:29AM +0100, Si Beaumont wrote: > On Wed, 01 Apr 2015 at 11:00, Si Beaumont wrote: > > On Wed, 01 Apr 2015 at 01:24, Thomas Adam wrote: > > > On Tue, Mar 31, 2015 at 08:56:15AM +0100, Si Beaumont wrot

Re: [PATCH] Update environment when switching sessions

2015-04-13 Thread Si Beaumont
On Wed, 01 Apr 2015 at 11:00, Si Beaumont wrote: > On Wed, 01 Apr 2015 at 01:24, Thomas Adam wrote: > > On Tue, Mar 31, 2015 at 08:56:15AM +0100, Si Beaumont wrote: > > > + update = options_get_string(&global_s_options, > > > "update-environment"); > > > > I think you want &s->opt

Re: [PATCH] Update environment when switching sessions

2015-04-01 Thread Si Beaumont
Ah, yes! Sorry I think I cribbed from the wrong place and what you say is what happens in the attach command. Attached is a revised version of the patch. Si >From b572f6168f98cf8745f210dfe8eaa93ecc3e4704 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Thu, 5 Feb 2015 10:28:41 +0000 Subje

Re: [PATCH] Update environment when switching sessions

2015-03-31 Thread Thomas Adam
On Tue, Mar 31, 2015 at 08:56:15AM +0100, Si Beaumont wrote: > + /* Update the environment if we're switching clients */ > + if (c != NULL) { > + if (s != c->session) { > + update = options_get_string(&global_s_options, > "update-environment"); I think you

[PATCH] Update environment when switching sessions

2015-03-31 Thread Si Beaumont
umont Date: Thu, 5 Feb 2015 10:28:41 + Subject: [PATCH] Update environment when switching sessions --- cmd-switch-client.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd-switch-client.c b/cmd-switch-client.c index d8f7346..c46cfa2 100644 --- a/cmd-switch-cl