Date: Sat, 28 Jan 2017 17:28:44 +0000 From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 202269] [patch] sysutils/consolekit update to 1.0.0 Message-ID: <bug-202269-6497-8o0rufUv3D@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-202269-6497@https.bugs.freebsd.org/bugzilla/> References: <bug-202269-6497@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202269 --- Comment #6 from Jesper Schmitz Mouridsen <jesper@schmitz.computer> --- Created attachment 179377 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179377&action= =3Dedit Update to consolekit 1.0.2 with active session working better. Since it is not possible to get the pid over the socket see #comment5 , as = on linux and other systems I have added another call to kvm_getprocs, pointed = out to me by Olivier Duchateau, to get a pid. It takes the uid from getpeereid = and uses it as an filter to kvm_getprocs iterate until it finds a Xorg process = by name and stores the pid. How is that done better?=20 Since device =3D get_tty_for_pid (pid) seems to return the tty on which xinit/startx was invoked, I've switched the order of calls to=20 device =3D get_tty_for_pid (pid); and device =3D get_tty_for_display (xdisp= lay); This ensures that the active tty equals the tty_for_display when in X as a physical seat/user.=20 This patch is highly based on the xfce consolekit1.0.2 version by the xfce = team also posted here, but it is made against ports r432633 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202269-6497-8o0rufUv3D>