Re: [Spice-devel] [vdagent-linux v2 4/6] console-kit: do not use empty session

2016-04-28 Thread Victor Toso
Hi, On Wed, Apr 27, 2016 at 02:49:22PM -0500, Jonathon Jongsma wrote: > On Sat, 2016-04-23 at 12:27 +0200, Victor Toso wrote: > > DBus might return empty string for active-session, probably in a non user > > session (e.g. gdm). It is better to keep the variable as NULL as we check > > against that

Re: [Spice-devel] [vdagent-linux v2 4/6] console-kit: do not use empty session

2016-04-27 Thread Jonathon Jongsma
On Sat, 2016-04-23 at 12:27 +0200, Victor Toso wrote: > DBus might return empty string for active-session, probably in a non user > session (e.g. gdm). It is better to keep the variable as NULL as we check > against that (but never against empty strings). > --- > src/console-kit.c | 7 ++- > 1

[Spice-devel] [vdagent-linux v2 4/6] console-kit: do not use empty session

2016-04-23 Thread Victor Toso
DBus might return empty string for active-session, probably in a non user session (e.g. gdm). It is better to keep the variable as NULL as we check against that (but never against empty strings). --- src/console-kit.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/co