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 wLJTFoWNLGK7YwEAgWs5BA (envelope-from ) for ; Sat, 12 Mar 2022 13:09:41 +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 GNGjE4WNLGLlgQAA9RJhRA (envelope-from ) for ; Sat, 12 Mar 2022 13:09:41 +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 CCA8E38008 for ; Sat, 12 Mar 2022 13:09:40 +0100 (CET) Received: from localhost ([::1]:47632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT0Z1-0001Ru-10 for larch@yhetil.org; Sat, 12 Mar 2022 07:09:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT0XV-0001P9-NA for emacs-orgmode@gnu.org; Sat, 12 Mar 2022 07:08:05 -0500 Received: from ciao.gmane.io ([116.202.254.214]:37158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT0XU-0005I8-2Z for emacs-orgmode@gnu.org; Sat, 12 Mar 2022 07:08:05 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nT0XS-0009Nz-Jn for emacs-orgmode@gnu.org; Sat, 12 Mar 2022 13:08:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [PATCH] org-protocol.org: updated Linux setup (Gnome) section Date: Sat, 12 Mar 2022 19:07:53 +0700 Message-ID: References: <20220310193517.ofifkwv2bmhmqpad@not-a-pinebook> <87mthwrzk0.fsf@wmeyer.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US In-Reply-To: <87mthwrzk0.fsf@wmeyer.eu> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647086980; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3icOZZbfgsk6suCwjM7mJm9bC+GBdVhKL3NzBFX4Xf8=; b=lMc5ovPvVHuyEgl+XNvL13akOK23kdE7VLqIGUjEor+vMDq6uofEDP9vghExN5uy4InOsm I3FRmMCQQKoytxUr57c6C17MH5oo/+Ld7E8iRkIpnuv3QsqAgOH5a2E4wnq4L1p4c8dhdt lYiyUyAyW3ClKiFkIioYeWbSeFvq67ERSX000MKCrMaZbCoBeShCLf5uXZDcZwnCOfQxMD AB9sNhaHS/c6s4kqvmNeXU5papgUtsCUhl9HItw8o3ZNV/7BRfrTqXdYfC+8HXCkMUW5AW LQyGoLn3uVku4QfIHlbTx1xPLXlKFCC7bCQtNHM97KnhIUtL1pjTe4CwUGSn8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647086980; a=rsa-sha256; cv=none; b=IJLRjy0Hog7DhqAvX9KUjMiyrtqABLT0VEtm7RfwXQjMNd/OfxqxrOfIyM/WkdAeNYK5GY k69VSphWT6JTceC+iomzMQaJ66mVkHsUvarYFnQjDy2CQc8k+9Vwh6YrtHdIgKmrgpiesp hE9QIwWiVJ6NlVCeT+RgptsQwVPX0Mtnc4K77G7A0NmyKuXDE2mD7KziRvHjc3BNe/4FUv GtP2DuSP63+hzOH0DW4my+7InyvcZTuWoWgQwy9T36g3h+YlplJy+WSIDaGzSVXkdy5W5G To61ZOd72FxWIbbS8CEvZUXVoagaMMijd9RJFS8x9JZ6xlbHIFaHqUipZ00zhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 2.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: CCA8E38008 X-Spam-Score: 2.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: /jPWqS9UQupr Applied ...with some minor tweaks (let me know if you do not like them). Thank you. https://orgmode.org/worg/org-contrib/org-protocol.html has been updated. On 12/03/2022 02:37, Wilko Meyer wrote: > > As the XDG Desktop Entry Specification should be a de facto standard > by now, adding a new universal GNU/Linux section seems to be a good > idea. It should work with KDE and other DEs as well (though I have only > tested Mate and Gnome 3 so far). It is a burden to test such issues. A bunch of virtual machines helps, but it is necessary to start from clean user profiles each time. >> I can not suggest a better category, e.g. Utility is hardly better >> that System, but it is not really a system application as well. > > Having considered this I'd advocate to use the "Other" category here. > Utility or System would make sense as well, but as users most likely > won't interact with said .desktop entry via their application menu, it > probably would be beneficial to put it in a more generic place. I do not see "Other" in https://specifications.freedesktop.org/menu-spec/latest/apa.html but it caused appearance of the new section (even with localized name) in KDE, so it works fine. > Agreed. Something I'm unsure of is, wether using the > update-desktop-database command can be seen as universal. It is part of > the package desktop-file-utils in arch linux (emacs has it as a > dependency, so it'll be installed anyways) but I cannot see KDE/plasma > depending on it. In kubuntu kubuntu-desktop meta-package recommends desktop-file-utils. Anyway with your changes the page is more helpfil than it was before. In a minimal container xdg-open fallback functions are able to find .desktop file without updating of MIME types cache. Sometimes I just add x-scheme-handler/org-protocol=org-protocol.desktop to [Default Applications] or [Added Associations] section in ~/.config/mimeapps.list to make firefox aware of it. Unfortunately shipped emacsclient.desktop is not suitable to just recommend to adjust the mimeapps.list file. >> Have you managed to adjust emacs server or >> general buffer settings to ensure new graphical frame (on the same >> virtual desktop) in such cases? > > I haven't put much thought into this yet. I ran a quick test by starting > firefox from command line and tried bookmarking a random page via > org-capture. It seems that your approach is more productive. I tried to get more experience (e.g. I know that an attempt to select the emacsclient executable file in firefox as a custom handler leads to a silent failure when the browser is installed as a snap package that is new default in Ubuntu) so I believed that I am not ready yet to update the recipes.