Date: Fri, 21 Mar 2025 15:56:54 +0100 From: Jan Beich <jbeich@FreeBSD.org> To: Gleb Popov <arrowd@freebsd.org> Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: d9c63d9e7e80 - main - sysutils/consolekit2: Pull in commit adding GetSession method Message-ID: <cyea-h1op-wny@FreeBSD.org> In-Reply-To: <CALH631mzU4a-mqJfpGZzhLFysavp7j1pR8sRqiyTEyKvxRv6Tw@mail.gmail.com> (Gleb Popov's message of "Fri, 21 Mar 2025 17:41:04 %2B0300") References: <202503210645.52L6jjGI081246@gitrepo.freebsd.org> <msde-a22b-wny@FreeBSD.org> <CALH631mzU4a-mqJfpGZzhLFysavp7j1pR8sRqiyTEyKvxRv6Tw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Gleb Popov <arrowd@freebsd.org> writes: > On Fri, Mar 21, 2025 at 5:30=E2=80=AFPM Jan Beich <jbeich@freebsd.org> wr= ote: > >> >> Gleb Popov <arrowd@FreeBSD.org> writes: >> >> > -GH_TAGNAME=3D 70b5f7d6f710377f288b4723a32923290dc16501 >> > +GH_TAGNAME=3D fbf7045c8d83b0c3f08535577aa2365bf9b250bf >> >> Does GetSession support auto instead of SessionN as argument? See >> https://github.com/ConsoleKit2/ConsoleKit2/issues/151 >> >> $ dbus-send --system --dest=3Dorg.freedesktop.ConsoleKit \ >> --type=3Dmethod_call --print-reply --reply-timeout=3D2000 \ >> /org/freedesktop/ConsoleKit/Manager \ >> org.freedesktop.ConsoleKit.Manager.GetSession string:Session1 >> method return time=3D[...] sender=3D:1.75 -> destination=3D:1.149 serial= =3D195 reply_serial=3D2 >> object path "/org/freedesktop/ConsoleKit/Session1" >> >> $ dbus-send --system --dest=3Dorg.freedesktop.ConsoleKit \ >> --type=3Dmethod_call --print-reply --reply-timeout=3D2000 \ >> /org/freedesktop/ConsoleKit/Manager \ >> org.freedesktop.ConsoleKit.Manager.GetSession string:auto >> Error org.freedesktop.ConsoleKit.Manager.Error.General: Unable to find s= ession for ID > > Unfortunately, nope. Maybe you can patch the client code to call > GetCurrentSession instead as a poor man's hack. GetCurrentSession has 0 arguments which makes patching a bit harder. hyprid= le uses GetSessionByPID with (uint32_t)getpid() (in C) or uint32:$$ (in shell), inspired by KWin. Besides, GetCurrentSession doesn't exist in logind unlike ConsoleKit2.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cyea-h1op-wny>