From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WMeKAEBTKmJ8RQAAgWs5BA (envelope-from ) for ; Thu, 10 Mar 2022 20:36:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8IuVOT9TKmJVVAEA9RJhRA (envelope-from ) for ; Thu, 10 Mar 2022 20:36:31 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7FCC01C989 for ; Thu, 10 Mar 2022 20:36:31 +0100 (CET) Received: from localhost ([::1]:47302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSOaM-0001j6-8g for larch@yhetil.org; Thu, 10 Mar 2022 14:36:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSOZb-0001ik-2t for emacs-orgmode@gnu.org; Thu, 10 Mar 2022 14:35:43 -0500 Received: from mail.wmeyer.eu ([95.216.196.112]:56298) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSOZZ-00087m-6S for emacs-orgmode@gnu.org; Thu, 10 Mar 2022 14:35:42 -0500 Date: Thu, 10 Mar 2022 20:35:17 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wmeyer.eu; s=mail; t=1646940932; bh=Gr/9S0zq+ZIAl+NGODzLZoGoCnkI7fP0s1xiwoXTNCk=; h=Date:From:To:Subject; b=N/uVrbbnVLennGjszspmrLnlfjz8adIJHHO1Fb8Ez7C4mjtVUgc51YstfrmH5abI6 oSY4JgF8/Tync0L3l5L/idnsDat0YZ15eTDZxtVZ7EDefELqX/s1KwucJ7eyzoQmUv Xk2/Q9NTibpDfmSRLP4Xx7XWBZjzmPNYt9hj+vo4= From: Wilko Meyer To: emacs-orgmode@gnu.org Subject: [PATCH] org-protocol.org: updated Linux setup (Gnome) section Message-ID: <20220310193517.ofifkwv2bmhmqpad@not-a-pinebook> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="g3c5tqu5tfp5ymlb" Content-Disposition: inline Received-SPF: pass client-ip=95.216.196.112; envelope-from=w@wmeyer.eu; helo=mail.wmeyer.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646940991; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=252ip20MPEqMpuhtLXpvX5BmSc7IWoGqn4/n2oXiZn8=; b=Ne8W03lBJEn46Ul+Nn2VUcgk0OK2iRekzqrPhfyGgpgg++biyTyWEb7+eCJJaBMCpklL/l DPQbxO5QLtrQZu9Er1iyUoWov2PdPZhSaxEsdVac/H0XcNvFNXOKlLYQOb9rN3u9doNrnt xX9ZyhxS4k+bBEipb3cjWhi6rpBrADb1KMf5SUEslLzdmnn2h1yqMtVfBSWI0WtNowm96i hGsRZZH75Jz8U1RV4j54Sj/VS2yzsE4GX1wEM+pL7tvxfxCDs6H9IKYQGL2hhxqLJedahZ NOadB7dqLKRmFFBI3k8+2Vn9LohYFLCBs4KgmQ54GobESKk7cuhPW1t2OEJ47A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646940991; a=rsa-sha256; cv=none; b=Pd+8REAU8hSvTQontijHatfuUojqLxvYBp8B53+nmexL4KzWlu0kPTIK05A1aPch3dvlC1 X9N5GOibvvxPGUBQYcbEfD5yk+rGaUT6OcA52Z7CCfO98TnP51mmuit9+GpGg41MP6O0u7 n6BY8LZUacYUpbiA0XElngLptGYOjTNaeduT1q+bXaxxlp9wIJvxJaGdd/OGhIlZimJhZb Jc+dDgDwSyWVt+Lv6JxD0ZibaDQGt0TiVZlFHeTnK3nwLShOUwy8h00A9j5ff7aQrFJwDz ABxRCLIjeG9ZXRJpMY/Bh7W8AOLI5ZDEsYmrARTse9MMEPNXa/4ovu1bIMhR8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wmeyer.eu header.s=mail header.b="N/uVrbbn"; dmarc=pass (policy=none) header.from=wmeyer.eu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.20 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wmeyer.eu header.s=mail header.b="N/uVrbbn"; dmarc=pass (policy=none) header.from=wmeyer.eu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7FCC01C989 X-Spam-Score: -5.20 X-Migadu-Scanner: scn0.migadu.com X-TUID: Skfq2Kye99Wg --g3c5tqu5tfp5ymlb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Good evening, I'd like to suggest an update to the org-protocol.org "Linux setup (Gnome)" section as it is refering to gconf/gconftool-2 which is deprecated as of Gnome 3. It may be a good idea to use .desktop-Files (as described in freedesktop.orgs Desktop Entry/Menu Specification) here to complete this step (which is what my patch suggests). --g3c5tqu5tfp5ymlb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-org-protocol.org-updated-Linux-setup-Gnome-section-a.patch" >From 8c62f173c34929dd03e324ff3ec4d457850e52c4 Mon Sep 17 00:00:00 2001 From: Wilko Meyer Date: Thu, 10 Mar 2022 19:59:45 +0100 Subject: [PATCH] org-protocol.org: updated Linux setup (Gnome) section as gconf is deprecated by now --- org-contrib/org-protocol.org | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/org-contrib/org-protocol.org b/org-contrib/org-protocol.org index 57cab17f..b10ef41e 100644 --- a/org-contrib/org-protocol.org +++ b/org-contrib/org-protocol.org @@ -89,10 +89,21 @@ actions. Just register your custom sub-protocol and handler with the variable *** Linux setup (Gnome) - For this to work, you'll need the Gnome-Libraries to be installed. + Add a file =org-protocol.desktop= to =~/.local/share/applications/=: + + #+begin_example + [Desktop Entry] + Name=org-protocol + Exec=emacsclient '%u' + Type=Application + Terminal=false + Categories=System; + MimeType=x-scheme-handler/org-protocol; + #+end_example + + Update the cache database of MIME types handled by desktop files via: - : gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command '/usr/local/bin/emacsclient %s' --type String - : gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean true + : update-desktop-database ~/.local/share/applications/ *** Linux setup (KDE) -- 2.35.1 --g3c5tqu5tfp5ymlb--