Date: Sun, 29 Jan 2017 15:38:38 +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-o74tiZyfld@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 #8 from Jesper Schmitz Mouridsen <jesper@schmitz.computer> --- Created attachment 179399 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179399&action= =3Dedit Update to consolekit 1.0.2 with active sessions working. This is another approach. I have narrowed the problem down. On Linux the X process' control tty is the same as Xfree86_VT (e.g the display device). On FreeBSD it is the invoking tty. e.g startx on /dev/ttyv1 the Xorg procees' = tt is ttyv1 even though Xfree86_VT is vt9 Inspired by http://unix.stackexchange.com/questions/32884/which-virtual-terminal-is-a-g= iven-x-process-running-on I use libprocstat to read the actual display device from pid. e.g no need to only use the root window property XFree86_VT as in my previous patch. This needs the ck-get-x11-display-device to be setuid root. The Makefile reflects/sets this. Another problem was that the active tty is returned as full path and display-deivce was only ttyvX. I have prefixed display-device with "/dev/" ck-sysdeps-freebsd.c @@ -128,7 +128,7 @@ ck_process_stat_get_tty (CkProcessStat *stat) { g_return_val_if_fail (stat !=3D NULL, NULL); - return g_strdup (stat->tty_text); + return g_strdup_printf("/dev/%s",stat->tty_text); } Furhermore I have reverted the use of consolectl as it does not work on 11-RELEASE. I have not tested on 10. --=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-o74tiZyfld>