From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#65469: [PATCH] * etc/emacsclient.desktop: Make Emacs default application for org-protocol Date: Wed, 23 Aug 2023 09:30:38 +0000 Message-ID: <87v8d66r7l.fsf@localhost> 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="5353"; mail-complaints-to="usenet@ciao.gmane.io" To: 65469@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 23 11:31:52 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 1qYkDP-00018z-4N for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Aug 2023 11:31:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYkCe-00019P-3F; Wed, 23 Aug 2023 05:31: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 1qYkCZ-000179-SG for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 05:30:59 -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 1qYkCZ-0007KI-IQ for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 05:30:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYkCc-0002fP-HF for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 05:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Aug 2023 09:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169278302810204 (code B ref -1); Wed, 23 Aug 2023 09:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Aug 2023 09:30:28 +0000 Original-Received: from localhost ([127.0.0.1]:32823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYkC4-0002eW-3n for submit@debbugs.gnu.org; Wed, 23 Aug 2023 05:30:28 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:41266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYkC1-0002eJ-Vl for submit@debbugs.gnu.org; Wed, 23 Aug 2023 05:30:26 -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 1qYkBs-0006sE-Iv for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 05:30:16 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYkBp-0006eV-Fv for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 05:30:16 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 60130240027 for ; Wed, 23 Aug 2023 11:30:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692783010; bh=G0z/aC5JUYlL5815PNqwa8bVYUt6B7IfiJZ+XgPUBic=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=Qkl2rcq3ujgga618Q0xQBd5luP7neoaEi4KUgJeYBObk6ZsQvKN3voXLHUVJCMQh/ BL8RkKKNtV51N/hLPae9IvhUqZBKZan5UBZIWH8X5iQZzf1TOVe/btDhh/R2U43Eu1 Fs9JLfigWkiXOqt1hh/3uBznp1diEUgZHM20m2HEDRx1XtyqUx6extmGsLYLQCgP9O yjzo0cvtrlBKtnyNByQiYWFZFOT77vVcCAmU2sMHEBaS0BFN2hd9vm7znmCO+ORzLj dpCM0ll8WIt79C9xXiO5W6JaZ6c5C/8qTTseJ3SlMWbXWHQOYB8QAIDLhvcc44s17/ cPBDRh6W1JaZA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RW1CP5gvgz9rxK for ; Wed, 23 Aug 2023 11:30:09 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:268214 Archived-At: --=-=-= Content-Type: text/plain Tags: patch Hi, Org mode provides a way to quickly capture bookmarks, notes, and links using emacsclient: emacsclient "org-protocol://store-link?url=URL&title=TITLE" Also, see https://orgmode.org/manual/Protocols.html However, this can only be done via command line by default. Not DE integration is available and users have to write their own .desktop files specifically to allow, for example browser bookmarklet running Emacs + org-protocol. Would it make sense to add x-scheme-handler/org-protocol handler to the default Emacsclient desktop file? In GNU Emacs 30.0.50 (build 54, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-08-22 built on localhost Repository revision: c09d78f3c0818d7391760e84f94a442e8beb22dd Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Gentoo Linux Configured using: 'configure --with-native-compilation JAVAC=/etc/java-config-2/current-system-vm/bin/javac' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-etc-emacsclient.desktop-Make-Emacs-default-applicati.patch >From 77e17eb6adf744a2b9565ca6f434fd6d488e84b0 Mon Sep 17 00:00:00 2001 Message-ID: <77e17eb6adf744a2b9565ca6f434fd6d488e84b0.1692782734.git.yantar92@posteo.net> From: Ihor Radchenko Date: Wed, 23 Aug 2023 12:24:18 +0300 Subject: [PATCH] * etc/emacsclient.desktop: Make Emacs default application for org-protocol --- etc/emacsclient.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/emacsclient.desktop b/etc/emacsclient.desktop index a9f840c7033..4395d3b02bc 100644 --- a/etc/emacsclient.desktop +++ b/etc/emacsclient.desktop @@ -2,7 +2,7 @@ Name=Emacs (Client) GenericName=Text Editor Comment=Edit text -MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;x-scheme-handler/org-protocol; Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F Icon=emacs Type=Application -- 2.41.0 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--