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 ms5.migadu.com with LMTPS id oAQbIpIwlmKZDwAAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 17:13:22 +0200 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 +PwLIpIwlmIdTQEA9RJhRA (envelope-from ) for ; Tue, 31 May 2022 17:13:22 +0200 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 22F822FDD5 for ; Tue, 31 May 2022 17:13:22 +0200 (CEST) Received: from localhost ([::1]:57044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nw3Ge-0003h7-68 for larch@yhetil.org; Tue, 31 May 2022 10:54:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw3Ft-0003cX-2e for emacs-orgmode@gnu.org; Tue, 31 May 2022 10:53:57 -0400 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]:44893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nw3Fk-00084T-Od for emacs-orgmode@gnu.org; Tue, 31 May 2022 10:53:56 -0400 Received: by mail-lj1-x230.google.com with SMTP id z13so984736ljn.11 for ; Tue, 31 May 2022 07:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=MyrkLc92IJjTT6q+B/r77TD8YNYNTgTWkZaXz/U0Nd4=; b=balpObSAan8Kzpm+XT3CYs7OWYnLEl7mL7898HKi5TQKPJ+s7AsU700RS0fov3oJXm LAEatNQFrMWxKE65mXynwZV1T4L91Lju7qZ7dSyGB7A4avBjhUbzXgsGWbLDMmsS1ity xbwjAIstfGxZNmQAAcapzlPEk+XfNihqxDT9oK2Vg68jzLz2/bWOWSAtHAi8etKcMLgU UhCSatWT4GfrrxtHzQWmvEdvQ9NRQFEuo+xn4PwDes0jc0YVf8DjH1u2qfKDlq+L2bRZ ZQAVuBhL0ot4CGBdO6EPM/+CAdmiEIzHSpi3Je59aUV3XKuVT4W7wBVn9wc9+r8TgzO8 INBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=MyrkLc92IJjTT6q+B/r77TD8YNYNTgTWkZaXz/U0Nd4=; b=8OUzvv/5AFVAw44qotwFjOdpQt1mRlZnt98HFEe6fHOx77RELbLITnS4pJyclyB1g9 9TtqPJ9lg7/ZgHbO5IF9yNqyHpYI8uo8aASYMD/DZc/ZwhnieiN4FBCOAeVh4TJ8tHTY EhCFl71lN2lI9tK++N12Sm2U1OJEdDdQ+LDHvePSK+En7k/uCOw8mYVVOteAktrhzimi DKaYgVlfsWRHitaqdUQ0fIFtfnzFFS/Ci28kBmFOE3A09+y/l/nlUkHAlEffUvUgGBfE x9OAfLTBFsjf0nkGhUjJKJoahoj2+6E8/U/JcAnVbbmWEUF7mTOmJp045KuK7V80oMVJ p+iw== X-Gm-Message-State: AOAM532IwJF5ZFVIrhuhmF0HQvO95SN8AilcFo/2UAdShf8Y+fcQkh0o rHLENRg54gjGcVsVVZiU6ZOasHi5LOGWu69o X-Google-Smtp-Source: ABdhPJzElsJNheh08NmxG2wfnbx9VFd4EZ/cwuPyuQhrIVIp8z0VcaIvKGHoZnW0OTAHEBl8MaZQPQ== X-Received: by 2002:a2e:a5ca:0:b0:254:5b73:f8cc with SMTP id n10-20020a2ea5ca000000b002545b73f8ccmr14955254ljp.341.1654008826382; Tue, 31 May 2022 07:53:46 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id j16-20020a056512399000b0047255d21152sm3004687lfu.129.2022.05.31.07.53.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 07:53:45 -0700 (PDT) Message-ID: <21f0a03a-036b-1367-c076-60de1a6772c1@gmail.com> Date: Tue, 31 May 2022 21:53:44 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Opening org-cite links with different application Content-Language: en-US To: Alessandro Bertulli , emacs-orgmode@gnu.org References: <87fskxlgwj.fsf@gmail.com> From: Max Nikulin In-Reply-To: <87fskxlgwj.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=manikulin@gmail.com; helo=mail-lj1-x230.google.com 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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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-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=1654010002; 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:dkim-signature; bh=MyrkLc92IJjTT6q+B/r77TD8YNYNTgTWkZaXz/U0Nd4=; b=WLcyhNH9sciy2Egp7+DqJO539ySydIvk6WnkElANhE8p5N7lp6nl5d1JjJjF9vd76pNz9L U3Soa5Z4nK7QRdQdcEq98jqYeUcsy2slXZ+34zMz92qEo2v3o6N4FKEpi6H78R0f/nn5gB uf78Kg8eABfs1O9o8KvOsZxUUiE5hA2RtXZ1SI0h/sQXNsEFtbuktaqkALy5WUZYwjae3r p2mNmm4mqfw26mR5H/BQXuvp50a9nx/exAjQDQKg005tzssNUqzjjCgrBt/KYBbaw214tE QcAJibYFCdlaCHB5lgRqTQQKfuP1wtQpi3tYtXekWscCwaHb9dlWClkiXHklGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654010002; a=rsa-sha256; cv=none; b=rNUU8jnVfoln631F2ywjtzI0jVp9hfsWSiGEG1+GEUB1VdznxMwI9yagwUyyfQ9h8vcwxb sQd5ZaE3/8nr6JPjO0HeBy/83So5AAyY6IaZdgXXvsXzJwPyN2j6nufis2l6QwnXaVpNep 9vl52EDrPrYE1MuuSSXum5t7M62VhIUxvC2MTHSv0knk2ETdm3+ViNCXSVRkheta6OZ5nj fnBUfNilqTRLslqPvgE2A8BASpKC98OiAIcsvK4iF+CxWfjPxb28tNFbVC8llh+X+PjIBp BAi/MyGl50gUd9aVL7xIXJSv4nxNSlkEVT1N5KEacWQa+p1gu8KKmBnb9Q87Sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=balpObSA; dmarc=fail reason="SPF not aligned (relaxed)" 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: 5.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=balpObSA; dmarc=fail reason="SPF not aligned (relaxed)" 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: 22F822FDD5 X-Spam-Score: 5.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZvZrstEPeLNy On 25/05/2022 23:24, Alessandro Bertulli wrote: > > P.S. I'm afraid I can't follow you: what's the point with mailcap? The idea is to keep associations between file types and handlers in a single place. Emacs does not have support of XDG handlers (at least out of the box) but pretends to have support of mailcap(5) database, https://www.rfc-editor.org/rfc/rfc1524.html "RFC 1524 - A User Agent Configuration Mechanism For Multimedia Mail Format Information". At least Debian provides a script that extracts supported MIME types from application .desktop files and adds this info to /etc/mailcap. I do not consider mailcap as a perfect solution, but there is nothing better within Emacs. I believe that configuring each Emacs package separately is even worse. Ideally it should work as a chain of responsibility: system-wide configuration in /etc/mailcap, emacs-wide adjustments, maybe package specific configuration. I agree that is customary to set special PDF viewer to open citations. Have you considered another approach: to write a script that chooses PDF viewer based on file directory and make it system-wide handler? Then sioyek may be launched even by clicking on a file in file manager. P.S. Alessandro, could you, please, response to mails using "reply" button. You messages lack of In-Reply-To and References headers, so at least thunderbird does not group messages into a thread.