From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65469: [PATCH] * etc/emacsclient.desktop: Make Emacs default application for org-protocol Date: Wed, 20 Sep 2023 16:39:19 +0300 Message-ID: <83msxharqw.fsf@gnu.org> References: <87v8d66r7l.fsf@localhost> <87led53q0c.fsf@thaodan.de> <87fs3bkho4.fsf@localhost> <835y47g2b2.fsf@gnu.org> <83r0mveel5.fsf@gnu.org> <87cyyfnkvf.fsf@thaodan.de> <837comevw5.fsf@gnu.org> <877comr3te.fsf@thaodan.de> <8334zae81i.fsf@gnu.org> <87o7hyo1bs.fsf@localhost> <83v8c6cpwe.fsf@gnu.org> <87a5tinvzp.fsf@localhost> <83jzsmclvx.fsf@gnu.org> <871qeunu1u.fsf@localhost> <83a5ticjla.fsf@gnu.org> <87wmwl8a15.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15795"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bjorn.bidar@thaodan.de, stefankangas@gmail.com, 65469@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 20 15:40:35 2023 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 1qixRS-0003tw-IY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Sep 2023 15:40:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qixQy-0003VH-2r; Wed, 20 Sep 2023 09:40:04 -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 1qixQn-0003Qw-6u for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 09:39:54 -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 1qixQm-0005Nb-JK for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 09:39:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qixQv-0004Xo-Na for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 09:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2023 13:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65469-submit@debbugs.gnu.org id=B65469.169521717617427 (code B ref 65469); Wed, 20 Sep 2023 13:40:01 +0000 Original-Received: (at 65469) by debbugs.gnu.org; 20 Sep 2023 13:39:36 +0000 Original-Received: from localhost ([127.0.0.1]:58558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qixQW-0004X0-3Z for submit@debbugs.gnu.org; Wed, 20 Sep 2023 09:39:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qixQR-0004Wl-CK for 65469@debbugs.gnu.org; Wed, 20 Sep 2023 09:39:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qixQB-0005GK-WD; Wed, 20 Sep 2023 09:39:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=pSQ6uxN1VT97pY3/Fc7J+CR1Wjf4FWzz9kR+xbIhH4c=; b=elpvpURs2l57EpImAQhh JIsIkDehFXIzvSD6Z2rkeKtlal3qc18asunrl/dBG6hFr//XZcBZVtSkQN+1Yln+H4WL1XNOILtd5 t7jcFRr0120lwf92GBKcSS37pvnsWaj1zDWHKKiYQvyZlkzImX6fzEDEZTkqQQod5CJmyU/4i4GuQ LyNKE6F9HtF+76ItTlNt2dit1jELH+ywWCEnOI5Zx/sbgk6tv08rtO+oZrdJ5COND/FAI8erUJ9Z/ d0Z53NtPtzdZmAWeopJMfV0Te4nbh18Qcw/bpXWZuxf9NL9M4yJpIPnGNzt9nD9v2ilos6lto8hoC yzk3eevTzNkbZA==; In-Reply-To: <87wmwl8a15.fsf@localhost> (message from Ihor Radchenko on Wed, 20 Sep 2023 09:32:38 +0000) 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:270924 Archived-At: > From: Ihor Radchenko > Cc: bjorn.bidar@thaodan.de, 65469@debbugs.gnu.org, stefankangas@gmail.com > Date: Wed, 20 Sep 2023 09:32:38 +0000 > > Eli Zaretskii writes: > > >> I guess it depends on the level of precision you want to have in the > >> NEWS entry. For me, the NEWS entry sounds good enough, but I wanted to > >> make things more clear after Björn's comment. > > > > So what is imprecise in the wording I suggested a couple of messages > > ago? > > Previously, users had to manually configure their desktop environment > to open 'org-protocol' links in Emacs. On any XDG-compliant system, > including GNU/Linux and some others, these links should now open in > Emacs automatically > > 1. GNU/Linux by itself is not XDG-compliant. Only some desktop > environments are. How about this minor variation: Previously, users had to manually configure their desktop environment to open 'org-protocol' links in Emacs. On any XDG-compliant desktop environment, including KDE and GNOME on GNU/Linux, and some others, these links should now open in Emacs automatically > 2. System does not have to be fully XDG-compliant. It is enough that > some apps (like Firefox) follow XDG spec and that xdg-utils is > installed. Does the above change solve this problem as well? Or maybe try this variant: ** On capable systems, Emacs is now the default application for 'org-protocol'. Org mode provides a way to quickly capture bookmarks, notes, and links using 'emacsclient': emacsclient "org-protocol://store-link?url=URL&title=TITLE" Previously, users had to manually configure their desktop environment to open 'org-protocol' links in Emacs. On any XDG-compliant desktop environment, including KDE and GNOME on GNU/Linux, and some others, these links should now open in Emacs automatically if the application that opens the link follows the XDG spec and xdg-utils are installed. This is because the "emacsclient.desktop" file now arranges for Emacs to be the default application for the 'org-protocol' URI scheme. See the Org mode manual, Info node "(org) Protocols" for more details.