From owner-freebsd-gnome@freebsd.org Sat Jan 28 17:28:44 2017 Return-Path: Delivered-To: freebsd-gnome@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76B38CC4AF6 for ; Sat, 28 Jan 2017 17:28:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 601131676 for ; Sat, 28 Jan 2017 17:28:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5C863CC4AF5; Sat, 28 Jan 2017 17:28:44 +0000 (UTC) Delivered-To: gnome@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C2E7CC4AF4 for ; Sat, 28 Jan 2017 17:28:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBE61675 for ; Sat, 28 Jan 2017 17:28:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0SHShaS067237 for ; Sat, 28 Jan 2017 17:28:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 202269] [patch] sysutils/consolekit update to 1.0.0 Date: Sat, 28 Jan 2017 17:28:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jesper@schmitz.computer X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnome@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2017 17:28:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202269 --- Comment #6 from Jesper Schmitz Mouridsen --- 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.=