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#65469: [PATCH] * etc/emacsclient.desktop: Make Emacs default application for org-protocol Date: Wed, 20 Sep 2023 15:41:00 -0700 Message-ID: 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> <83msxharqw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36969"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bjorn.bidar@thaodan.de, 65469@debbugs.gnu.org To: Eli Zaretskii , Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 21 00:42:14 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 1qj5td-0009Sd-L3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Sep 2023 00:42:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qj5tL-0006QZ-D5; Wed, 20 Sep 2023 18:41: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 1qj5tJ-0006QF-4E for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 18:41: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 1qj5tI-0004o7-My for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 18:41:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qj5tS-0006Jl-3L for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 18:42: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: Wed, 20 Sep 2023 22:42:02 +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.169524968224235 (code B ref 65469); Wed, 20 Sep 2023 22:42:02 +0000 Original-Received: (at 65469) by debbugs.gnu.org; 20 Sep 2023 22:41:22 +0000 Original-Received: from localhost ([127.0.0.1]:60586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5so-0006Io-4Z for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:41:22 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:47591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5sj-0006IX-Av for 65469@debbugs.gnu.org; Wed, 20 Sep 2023 18:41:20 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b962c226ceso4940431fa.3 for <65469@debbugs.gnu.org>; Wed, 20 Sep 2023 15:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695249661; x=1695854461; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=J6xF1VuCnXgNF+5Bl5CONdwJ8mBigCfYfmWRj49iZdU=; b=b/cfs1ttGNlACphveRELlFe90Il3eVuo6ZHzcv/XlPN8h6rUZ0w7e93gZJyfmTuP0a DVP89RIVywhVHxmF7ytesOlcKGi1Rp16JWT8QISaq9eiarvChPTV3JEeHm+YyGxLzr+V 0A1PswoWYpQ1cn1K6s44muA1BWBVKSbw6TOK6t0uj1mQ6zyqNUQCueq9Vm8jgH06zlhv c7rxPGLImbzzL9kJPvqMKgEtQECItEyTS+wERfY2B2yv6vaKC/8WHymFQ8SUJKHPMu1I d7EEJW4Thh4JxHbgrsvzKB52CqJxsx+ClgPF5+HL/6+/GQk6upJKqNpwlP7iBnqUUF5t /Pww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695249661; x=1695854461; h=cc: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=J6xF1VuCnXgNF+5Bl5CONdwJ8mBigCfYfmWRj49iZdU=; b=w4Lv5U3LPRWW7bqWGA9eBZufUHIX9GmwPR4jL1ciFsqV++KW4kVFGab5eq5Q09gh72 5ABOGHEIS5EPsJcQrqY8xzme454uTh61dV+rY7YHmJpZU8WFTm7RzgnHI5WVUpCBTQBa wjDzgUxUSTSxZQitPewIRmc/WH3FAn/toObxIduo6I0w0kjLJgdwp5ooFWrhFCp4nXCi Y6Dcqq3bXgBKS7GZogCTaE8ORG4NLNXTmqO0Wm2/+dJvekYqdiaVAoSfpN+XMcpi5eHl 3h3D1VZV1fRfKglM3VGU2HPiSUBk4VbGsrca+vqEVwsrpghZgsxhXXxfDJJOf8TaIfbr YxyQ== X-Gm-Message-State: AOJu0YxRuJ4QvQzkXC40D8LyG2ZMj7lWPGYsCP2QZoxYf38GMPL4rmNR mYD85fmrEvU7RB4UAuaA7mxYfqPhKKtMWu9mrdg= X-Google-Smtp-Source: AGHT+IExK00J4xwquzxiKo/hYaojCDVMLsZnDlEB9IxtjHIE8nKNayDkvdONohgrYMjoACvsBbMr+anclzKSSUfBWvA= X-Received: by 2002:a2e:868a:0:b0:2c0:2249:d3f2 with SMTP id l10-20020a2e868a000000b002c02249d3f2mr3166195lji.0.1695249661132; Wed, 20 Sep 2023 15:41:01 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 20 Sep 2023 15:41:00 -0700 In-Reply-To: <83msxharqw.fsf@gnu.org> 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:270954 Archived-At: Eli Zaretskii writes: > ** 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, Perhaps simpler: environment, such as KDE and GNOME on GNU/Linux, But my understanding is that KDE and GNOME desktop environments are XDG compliant on all supported platforms. Is that correct? If it is, perhaps it could be even simpler: environment, such as KDE and GNOME, (I'd mention GNOME first due to its historical connection to GNU, but that's probably a nitpick in this context.) > 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. Other than that, LGTM.