From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alvaro Ramirez Newsgroups: gmane.emacs.bugs Subject: bug#72827: [PATCH] Adds NSSpeechRecognitionUsageDescription to Info.plist.in Date: Fri, 30 Aug 2024 18:45:52 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27596"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72827@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 30 19:47:27 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 1sk5iY-0006vM-7z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Aug 2024 19:47:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sk5iG-0006P1-Uo; Fri, 30 Aug 2024 13:47:09 -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 1sk5iE-0006Or-Nu for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2024 13:47:07 -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 1sk5iD-0004fd-KN for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2024 13:47:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Fcu7ewgD/CbcLIO6n4PQCu9tpag3phNxiG3qMrlkwmE=; b=TbzLhjepOSsH6pTP4fBChdCOfT8+sSksIBiV40wnG1yUnjyuPhpcvcfH5pSpJQSSjdPa6LgLNtXFOVjHarpZgLjXhIPIrl9ZmMEpcT6mVks4EEg9sFjkKLqJq3GTeChidRGvZszl+HVduJ5XSNYTpZ6wy/jXy/HkDY7rSNCHZ0+F4vun5DVniUdI/43mP0K5WBPCNxzHty/QWP2fpde6LBdz5MabFKxmGJdNG0ecPRumJEErnnpwNsrSGFpmfBX22P8+QVUqXTwOG5pZEN6nkZwH+L4jwKVfAcBObPOTLmduVpzL5YgWlIghg5x+EW6BWWvnqBvqCX3RJTVRp1h9eA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sk5j8-0006Um-Cl for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2024 13:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alvaro Ramirez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Aug 2024 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72827 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 72827-submit@debbugs.gnu.org id=B72827.172504002824880 (code B ref 72827); Fri, 30 Aug 2024 17:48:02 +0000 Original-Received: (at 72827) by debbugs.gnu.org; 30 Aug 2024 17:47:08 +0000 Original-Received: from localhost ([127.0.0.1]:53412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sk5iD-0006TB-73 for submit@debbugs.gnu.org; Fri, 30 Aug 2024 13:47:08 -0400 Original-Received: from out-173.mta1.migadu.com ([95.215.58.173]:57579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sk5i7-0006SZ-LU for 72827@debbugs.gnu.org; Fri, 30 Aug 2024 13:47:03 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xenodium.com; s=default; t=1725039955; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Fcu7ewgD/CbcLIO6n4PQCu9tpag3phNxiG3qMrlkwmE=; b=aN6gu3//gy5ik6cJVkI2SEqfdzxshAHI7l84Y9t6I7WNnZWiWj+2FNPLHygi5CtR7xXB3H 7iS6FjOja6I3+mB5NgyG3QQPR4OnPxLP0gAu2SMj8KfH6eZ9+gfDkAApLEYEFiCw8uAbbW 2nuK/BTJJprfnySei8J8yflyZkPUXMU= In-Reply-To: (Stefan Kangas's message of "Fri, 30 Aug 2024 09:08:06 -0700") X-Migadu-Flow: FLOW_OUT 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:290969 Archived-At: --=-=-= Content-Type: text/plain; format=flowed Thanks Stefan Stefan Kangas writes: > Alvaro Ramirez writes: > >> Makes sense. The system dialog already includes these details, >> but >> happy to modify text in our control further if we still reckon >> it's needed. > > Since this is already displayed by the system, I think changing > the NEWS > entry is enough. Thanks again. Sounds good. I've updated NEWS and attached a new patch. --=-=-= Content-Type: text/x-patch; charset=utf-8; size=2.05KiB Content-Disposition: attachment; filename=0002-Adds-NSSpeechRecognitionUsageDescription-to-Info-plist-in.patch Content-Transfer-Encoding: quoted-printable >From 9db2c2ad848668389adeb80dd211bf700e4d5520 Mon Sep 17 00:00:00 2001 From: xenodium Date: Tue, 27 Aug 2024 09:36:56 +0100 Subject: [PATCH] Adds NSSpeechRecognitionUsageDescription to Info.plist.in Without it, we cannot launch processes that use macOS's speech recognition APIs. With NSSpeechRecognitionUsageDescription in place, macOS displays the dialog asking the user to grant permission and allows the speech APIs to be used from the process. --- etc/NEWS | 9 +++++++++ nextstep/templates/Info.plist.in | 2 ++ 2 files changed, 11 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index c5040776a73..8b398b5f8ef 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -43,6 +43,15 @@ The 'find-function', 'find-library', 'find-face-definiti= on', and 'find-variable' commands now allow retrieving previous input using the usual minibuffer history commands. Each command has a separate history. =20 +--- +** NSSpeechRecognitionUsageDescription now included in Info.plist (macOS). +Should Emacs (or any built-in shell) invoke a process using macOS speech +recognition APIs, the relevant permission dialog is now displayed, thus +allowing Emacs users access to speech recognition utilities. + +Note: Accepting this permission allows the use of system APIs, which may +send user data to Apple=E2=80=99s speech recognition servers. + ** Minibuffer and Completions =20 +++ diff --git a/nextstep/templates/Info.plist.in b/nextstep/templates/Info.pli= st.in index beddbf4a893..192c061bd1e 100644 --- a/nextstep/templates/Info.plist.in +++ b/nextstep/templates/Info.plist.in @@ -693,5 +693,7 @@ along with GNU Emacs. If not, see . Emacs requires permission to access the Downloads folder.<= /string> NSRemovableVolumesUsageDescription Emacs requires permission to access files on Removable Vol= umes. + NSSpeechRecognitionUsageDescription + Emacs requires permission to handle any speech recognition= . --=20 2.39.3 (Apple Git-146) --=-=-=--