Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2025 15:30:36 +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:  <msde-a22b-wny@FreeBSD.org>
In-Reply-To: <202503210645.52L6jjGI081246@gitrepo.freebsd.org> (Gleb Popov's message of "Fri, 21 Mar 2025 06:45:45 GMT")
References:  <202503210645.52L6jjGI081246@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain

Gleb Popov <arrowd@FreeBSD.org> writes:

> -GH_TAGNAME=	70b5f7d6f710377f288b4723a32923290dc16501
> +GH_TAGNAME=	fbf7045c8d83b0c3f08535577aa2365bf9b250bf

Does GetSession support auto instead of SessionN as argument? See
https://github.com/ConsoleKit2/ConsoleKit2/issues/151

$ dbus-send --system --dest=org.freedesktop.ConsoleKit \
  --type=method_call --print-reply --reply-timeout=2000 \
  /org/freedesktop/ConsoleKit/Manager \
  org.freedesktop.ConsoleKit.Manager.GetSession string:Session1
method return time=[...] sender=:1.75 -> destination=:1.149 serial=195 reply_serial=2
   object path "/org/freedesktop/ConsoleKit/Session1"

$ dbus-send --system --dest=org.freedesktop.ConsoleKit \
  --type=method_call --print-reply --reply-timeout=2000 \
  /org/freedesktop/ConsoleKit/Manager \
  org.freedesktop.ConsoleKit.Manager.GetSession string:auto
Error org.freedesktop.ConsoleKit.Manager.Error.General: Unable to find session for ID


--=-=-=
Content-Type: text/plain
Content-Disposition: inline; filename=hypridle-getsession.diff
Content-Description: x11/hypridle: switch to GetSession after d9c63d9e7e80

>From 45e535adf6fd542019dcbdd11f63bd545ba39888 Mon Sep 17 00:00:00 2001
From: Jan Beich <jbeich@FreeBSD.org>
Date: Fri, 21 Mar 2025 14:36:26 +0100
Subject: [PATCH] x11/hypridle: switch to GetSession after d9c63d9e7e80

---
 x11/hypridle/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/x11/hypridle/Makefile b/x11/hypridle/Makefile
index f57788955fd0..36fb02b2da92 100644
--- a/x11/hypridle/Makefile
+++ b/x11/hypridle/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	hypridle
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.1.5
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	x11 wayland
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -31,8 +31,6 @@ post-patch:
 	@${REINPLACE_CMD} -e 's,/login1,/ConsoleKit/Manager,' \
 		-e 's,login1,ConsoleKit,' \
 		-e 's,logind,consolekit2,' \
-		-e 's,GetSession,&ByPID,' \
-		-e 's,"auto",uint32_t{getpid()},' \
 		${WRKSRC}/src/core/Hypridle.cpp
 
 .include <bsd.port.mk>

--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?msde-a22b-wny>