From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71969: [PATCH] Support interactive D-Bus authentication Date: Tue, 09 Jul 2024 09:52:50 +0200 Message-ID: <871q43xar1.fsf@gmx.de> References: <877cdzklbd.fsf@stebalien.com> <87o77a20s6.fsf@gmx.de> <87frsm1sht.fsf@gmx.de> <86v81i36vh.fsf@gnu.org> <877cdy1r2a.fsf@gmx.de> <874j91ifkj.fsf@stebalien.com> <87msmtz264.fsf@gmx.de> <87sewk2q4t.fsf@stebalien.com> <87le2coym4.fsf@gmx.de> <87sewk9fz9.fsf@stebalien.com> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="868"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 71969@debbugs.gnu.org To: Steven Allen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 09 09:54:13 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sR5fx-000AY3-6R for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Jul 2024 09:54:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sR5fj-0005PZ-3f; Tue, 09 Jul 2024 03:53:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sR5fg-0005PP-Vw for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2024 03:53:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sR5fg-0001NK-NH for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2024 03:53:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sR5fl-0002Qq-O0 for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2024 03:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2024 07:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71969 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71969-submit@debbugs.gnu.org id=B71969.17205115929289 (code B ref 71969); Tue, 09 Jul 2024 07:54:01 +0000 Original-Received: (at 71969) by debbugs.gnu.org; 9 Jul 2024 07:53:12 +0000 Original-Received: from localhost ([127.0.0.1]:52051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sR5ex-0002Pl-NL for submit@debbugs.gnu.org; Tue, 09 Jul 2024 03:53:11 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:40987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sR5ev-0002PU-Uz for 71969@debbugs.gnu.org; Tue, 09 Jul 2024 03:53:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1720511573; x=1721116373; i=michael.albinus@gmx.de; bh=OtdIvwwPOPd2l6J7fKaiVzYK1lvSv1o7v5qHzETRVJ8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Nvohu6//X/Yjv5ZVT25C9LO42JRRBSmyAMRqnNS9E4nQvZAJsNopIU9tdNZuHQPX N9aX08mIAw0B0PBz37/ZUP7MR+MZs77LGX5gpzhkgdQeBwAT+dmH4eHtHCALYGF0H 2kgqiPZEdhkXMnOr0Et5VYl30dEd+GemE4cfm9BdXBLwFaGfUKv+UYv1xk5ESqUiw QBIAC5qAeUBTkncFWwWHxomJr7yQ6AVjPiL9Nv7PPsotw/Yj7N2hElpEVMpKXR1nx Ft93kIzZUy5FMYE7MzGfrFfG4Gt7350GzN6PgsjHnwM0oc0RVxoyXMHtz/0tJ4wtk tXzdOOym1FI/DMib4Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1ML9yS-1sjAjn1WBW-00X6kw; Tue, 09 Jul 2024 09:52:53 +0200 In-Reply-To: <87sewk9fz9.fsf@stebalien.com> (Steven Allen's message of "Mon, 08 Jul 2024 15:21:30 +0200") X-Provags-ID: V03:K1:xvUd8tENIKa+t/lspMGbGvBMwa0eQDm+Wdnu+fJ7he3+i/hB75u h90u/UJtQtCs7t6zmwUTQVRl3dXdpTrPGtSWV/Umhr3caZp3auaeaXLM+weq+T7At/oH64B 8VdynMU56E8A+quzVzhzTT2Q2QE2DFt4D+UvpeDc2NkCHmWs9yZmPQ4FXdtl0CG/sEqgnAE iAgsnH5BOiUkf86xB/3KA== UI-OutboundReport: notjunk:1;M01:P0:wcdHKdhU2A0=;1qGyzCu+a9I+SHNibKCNeLqehIc fXkPUCRlz9dc6GiNoLFhUrJkn4KKLcYIPukkblNcwY7YUxTGX287tfyfx5hd+O3TbZQXqCN9l LChHMdYMB4GE5/iR6EjRuQfVnnG3aTLlUL21zvooxXcBAGzxbcafu0JuBEgvJar+xg6nc0wpG NdyqWXQtnE+Unv4LFHhpJ10bsC/5SoC9ASTnQPbhMCPFbx5ebkfzrmIlhcVKPNDTVmnxUq5GY eTTUllo7sVvvL+o/1MzOrhk7Nio33Y0qTQYzUNbq014uO53C09zQOPmj5Jcjxc5QUvsD6K4cE 3FwCHW+7onGPt4wRincE3Wokc0R6fZYpSWkdD2EcrEKl5adXln0AeXK0xYr5MnY3XsRluFurS I4pQ0s1m0Upy5GVLRvjVfKoRxzEOl1nWchAV9le2II0BgqaUAsrFKZJNJqhq/TyDA5JazaGMD ThjBsCuCjBBjdS93jIr86VgXfoQX2XySLVaJzxPO4MoyKZLauCFacqGbHu7kyUnJV6KbKJing GO4EsmMV1DnAnRQpcv5SAn9ERrqDCqnJOturVXFo2vHDltWMNd6PzmVmuzAkrYo4+epA1YsUS Jz2NsQ4BFkliytzM08MWCPGYuUFl1kGGDh+ELykWGRjyBN2JWwhM+n1Zhik7DheXeODwL71WY M5hD42C9L0QN4elcTPXYIGr5vPKNgvX/4/487b8M6roRE+BSBFqzWW6ICfrhlC67MshWNriHp rNmwt+VRfdfihZM+SCOSw5qC/o9q9/vF+b64DkoTsZ2x7J/6PQDUuDqrxuMa1Ef7L8o29H4A X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288623 Archived-At: Steven Allen writes: Hi Steven, >>> Sorry about that. To restart the bluetooth service, execute: >>> >>> (dbus-call-method >>> :system >>> "org.freedesktop.systemd1" "/org/freedesktop/systemd1" >>> "org.freedesktop.systemd1.Manager" "RestartUnit" >>> :authorize t >>> "bluetooth.service" "replace") >>> >>> Assuming you have a polkit agent running (most DEs will run one by >>> default, but agents like mate-polkit work pretty well standalone), >>> you'll be prompted to authorize the operation and the bluetooth service >>> will be restarted. >> >> Nice. I get an authorization prompt. >> >> However, on my Fedora 40 / Gnome 46 / systemd 255 system, it doesn't >> matter, whether I use ':authorize t', ':authorize nil', or none of >> them. Is interactive authorization enabled by default, and we don't need >> to care about? > > It worked for me as well until a recent update (likely polkit 124 or > systemd 256). I'm guessing one of these projects fixed a bug somewhere > as it sounds like this flag should always have been required. Hmm, I don't understand what you want to say. Anyway, I believe we shall add this feature to Emacs only when we have seen an example where it makes a difference. Best regards, Michael.