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: Tue, 19 Sep 2023 15:24:01 +0300 Message-ID: <83v8c6cpwe.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> 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="7961"; 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 Tue Sep 19 14:25:07 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 1qiZmr-0001mQ-OB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Sep 2023 14:25:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiZmh-0004HO-0V; Tue, 19 Sep 2023 08:24:55 -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 1qiZmf-0004Gz-Fc for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2023 08:24:53 -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 1qiZmf-0006er-76 for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2023 08:24:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qiZmn-0004mg-Ur for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2023 08:25: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: Tue, 19 Sep 2023 12:25: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.169512626018324 (code B ref 65469); Tue, 19 Sep 2023 12:25:01 +0000 Original-Received: (at 65469) by debbugs.gnu.org; 19 Sep 2023 12:24:20 +0000 Original-Received: from localhost ([127.0.0.1]:55567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiZm7-0004lT-9T for submit@debbugs.gnu.org; Tue, 19 Sep 2023 08:24:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiZm3-0004lB-5p for 65469@debbugs.gnu.org; Tue, 19 Sep 2023 08:24:17 -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 1qiZlo-0006Ol-NY; Tue, 19 Sep 2023 08:24:00 -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=vnxD2pU7d+QPqRkhX7dgQPi3BLem/IjlhAXVlUBWdYQ=; b=J+x9wWkpp9N7w7TxExCq F4t/cwfr3JNb6/TvUx3D5pyA04YprHB71UdO4BTJz95j3nIkUcW6AtMviJJQttGH72w5JmEVpc6ox WumOgO6mjw2Kf5CH+w4TNjqgKHr9PPO6jLFE0/b6QLVUBFAJC6wPIDUWOhcqzxdd1Hli+6BGxFnMm 0SuUk7HBVMi9wMcJQypwxkhEpRAErt9kPc37Ae493DEy0bK6/Dpmzu57uugBkY5dIf4MtUEtt5g4L Qw63sSPWYft630FZLRoA2f/m03MrCYnGT6ZjPo3bAtMR4N7Hpxuv7Rg43mg6cMwNlrM8lgOFcB56A dIqjNhb9jNP1BA==; In-Reply-To: <87o7hyo1bs.fsf@localhost> (message from Ihor Radchenko on Tue, 19 Sep 2023 11:21:43 +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:270871 Archived-At: > From: Ihor Radchenko > Cc: Björn Bidar , > 65469@debbugs.gnu.org, > stefankangas@gmail.com > Date: Tue, 19 Sep 2023 11:21:43 +0000 > > Eli Zaretskii writes: > > > Let me turn the table and ask you: where are those desktop files, > > their format and contents described? If there's some standard > > document where they are documented, can you point me to that > > document? > > desktop files are defined in XDG spec. See > https://www.freedesktop.org/wiki/Specifications/ and > https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/ > > So, .desktop files are understood by XDG-compiant desktops and apps. Now > every desktop environment on GNU/Linux actually supports these specs. > Gnome and KDE do. Some others also do. Otherwise, one needs to install > xdg-utils or similar package manually. Then why my suggestion up-thread, viz.: >> It applies to all operating system that use desktop environments >> that comply with XDG so for example also BSD. > > Only XDG-compliant desktops? nothing else? was rejected? The reasons given at the time were: Well only those that handle xdg desktop files specific uri type handlers e.g. Gnome, KDE, Xfce etc. Not sure if there's something such as "fully XDG-compliant". My phrasing only intended to explain that in theory any operating system that uses xdg compliant desktop environments works with the change, not just GNU/QT/GTK/KDE/GNOME Linux. Specifically, with the following wording be accurate and clear? ** 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 system, including GNU/Linux and some others, these links should now open in Emacs automatically, as 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. > Also, a number of applications, expect xdg-open executable to be > available on GNU/Linux systems as a generic way to open files using > "right" application. Including Emacs itself - see > `browse-url-can-use-xdg-open', for example. Is this related to the issue with org-protocol?