[Bug 202269] [patch] sysutils/consolekit update to 1.0.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jan 28 17:28:44 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202269
--- Comment #6 from Jesper Schmitz Mouridsen <jesper at schmitz.computer> ---
Created attachment 179377
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179377&action=edit
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?
Since device = get_tty_for_pid (pid) seems to return the tty on which
xinit/startx was invoked, I've switched the order of calls to
device = get_tty_for_pid (pid); and device = get_tty_for_display (xdisplay);
This ensures that the active tty equals the tty_for_display when in X as a
physical seat/user.
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-gnome
mailing list