From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#72827: [PATCH] Adds NSSpeechRecognitionUsageDescription to Info.plist.in Date: Fri, 30 Aug 2024 01:10:40 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12593"; mail-complaints-to="usenet@ciao.gmane.io" To: Alvaro Ramirez , 72827@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 30 10:12:26 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 1sjwk6-00034W-BP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Aug 2024 10:12:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjwjp-0007KZ-Gc; Fri, 30 Aug 2024 04:12: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 1sjwjn-0007K4-Bv for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2024 04:12: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 1sjwjn-0002kM-2p for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2024 04:12:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=xtjVVU3z186Y1ur55+XIHn7/dNGwP+tP+YzjToKtUco=; b=BF+pj+cdxw+qev2DKv6BKimnCYAXDEVOS6XnqOq1in0BjBUjnWY1uIDtjRFkSX7aHd9HbIR5eGdjoFUIQFpY8i76VKTKpNKX393kFjUI/A8z/AI3VqfwDWmQ6w/WlhcncmAIgHR8FN17TXbm4rZch/o158yXUUyHV3lOZUUjRKN7hzkOAl3ogOv0KOYtgMbt9uJkxrqo4WADPtByI/R0Or4lvjH2sOsGnaXsCWUuD30fN3YjCq85TNzJM+7WyRsAn/XnUiJox9lfYKUoascl2Yr0JiU03D4c4ts46pgzxO5zmu3sBhR4UVXclWvCGapHpL1ccsuzr/TdtK30PU7bkA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sjwkg-00048n-GA for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2024 04:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Aug 2024 08:13: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.172500556915893 (code B ref 72827); Fri, 30 Aug 2024 08:13:02 +0000 Original-Received: (at 72827) by debbugs.gnu.org; 30 Aug 2024 08:12:49 +0000 Original-Received: from localhost ([127.0.0.1]:52452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjwkS-00048H-Gv for submit@debbugs.gnu.org; Fri, 30 Aug 2024 04:12:48 -0400 Original-Received: from mail-lj1-f182.google.com ([209.85.208.182]:47551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjwkP-000480-2I for 72827@debbugs.gnu.org; Fri, 30 Aug 2024 04:12:47 -0400 Original-Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2f4f505118fso17877151fa.3 for <72827@debbugs.gnu.org>; Fri, 30 Aug 2024 01:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725005442; x=1725610242; darn=debbugs.gnu.org; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:from:to:cc:subject:date:message-id :reply-to; bh=xtjVVU3z186Y1ur55+XIHn7/dNGwP+tP+YzjToKtUco=; b=GnD9LyvYpE9plRs/2g6eDx1aLWrosO9Gm97FDBjnZZ70c4h3lbUHwUin90Dk/RCZRZ XrzQvn0F+0DS/e6fw+V/D+T7AmPfFSWY3/VGQPYv5U9AmbO38JiiSiw/XHORWIJMUcd/ 8QvMPxxr2UHQFBlhATkL91SOIN4+/ThorACzaBzClx2wLz2np9p4Jh+Hcy6CmsukuE9H SbQzCAW0B3lxGjxf0nSYKN6qtDYsLxOgk/BZK0DPan0r+OuBGaDBHwwGEcrqfVbeihMK VG2pQwQ8x1pckPH9QeFx5FNDkoxdQRsBajn22jxeYqLJQqH237OR8RpfJkuHMlIvUrzo kiPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725005442; x=1725610242; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=xtjVVU3z186Y1ur55+XIHn7/dNGwP+tP+YzjToKtUco=; b=bwu4HwQdXLB9BNI62tyZ80H9JEp3FN6S20OjLb5RX3tqlhWx5dZ3Sh0Wv/DFOcku2N LbTyKku87iDODVL4UEMampEJZctstsr4RfxkOim9MWo3GWMfRGUuyOO/qoPLO9A1oLgs M0+HJal1fNRKT0z2pykfYozvgPw7CpeWFKMp5+R0rBXUG92Tqp6yFSTtvZGrfu25WYdX W6kfOBQ3k4Qf+RR72Dcl05vxzlP5qeE20QF3K/IDzsSoEc67/NZa72IbT/mAhppPaSop Um+PAsRSkadVyYVf0aIx+p0fIs0BRI8FdhojUlDcQ/APu9dTfoHGwiIlsAWZRNE/U+MF 1GCg== X-Forwarded-Encrypted: i=1; AJvYcCWV6zGp5t4bg9qMBLU6p9GZX3wYNd3ZFZLjZ9iJEeTFL/Cp+hK01Tnu6VFgNAQYH9SS+2qgVQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyC/T+7ep6D8TWtxQKeUCRJ+WM2h98HtbWPlZgqVsUmYJq+F8Jh RXjerxSx91559LU3C86Rbngzjt33dX7oxzqkuEwzZEF0vX1dRzIoHUzeHVJRe0wGjgPWaEmVlOp /42esGJt7hR8UavBNmaRfZvzpXt9dxJU9 X-Google-Smtp-Source: AGHT+IGk+x/TgA8G43+fMasiyQ+FSHRbeyZtcBtmkpWVdBsaxq3CDcEQnarrh5ObhHcVBxeUKLOnObjjkTd6e5XDN6Y= X-Received: by 2002:a2e:be9b:0:b0:2ee:7a3a:9969 with SMTP id 38308e7fff4ca-2f610392753mr42035381fa.5.1725005441806; Fri, 30 Aug 2024 01:10:41 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 30 Aug 2024 01:10:40 -0700 In-Reply-To: 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:290957 Archived-At: Alvaro Ramirez writes: > ps. My copyright assignment paperwork has been is > submitted. Awaiting copyright-clerk reply. Thanks for your contributions to Emacs. > diff --git a/etc/NEWS b/etc/NEWS > index 07d1cce0966..556b6005f32 100644 > --- a/etc/NEWS > +++ b/etc/NEWS > @@ -43,6 +43,12 @@ The 'find-function', 'find-library', 'find-face-defini= tion', and > 'find-variable' commands now allow retrieving previous input using the > usual minibuffer history commands. Each command has a separate history. > > +--- > +** 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. > + > ** Minibuffer and Completions > > +++ > diff --git a/nextstep/templates/Info.plist.in b/nextstep/templates/Info.p= list.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= . > NSRemovableVolumesUsageDescription > Emacs requires permission to access files on Removable V= olumes. > + NSSpeechRecognitionUsageDescription > + Emacs requires permission to handle any speech recogniti= on. The Apple documentation[1] says that: A message that tells the user why the app is requesting to send user data to Apple=E2=80=99s speech recognition servers. So I think the description should make it clear that this has privacy implications, for example by saying something like "Emacs requires permission to to send user data to Apple=E2=80=99s speech recognition serve= rs". The text in NEWS should also be changed accordingly. It's fine that the user is asked, instead of the process just getting silently terminated, but we do have to give the user enough information to make an informed choice here. Since this has potential privacy (and security?) implications, I think this should go to master. > > > -- > 2.39.3 (Apple Git-146) [1] https://developer.apple.com/documentation/bundleresources/information_p= roperty_list/nsspeechrecognitionusagedescription