From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qAlQAwE5MGMrJwEAbAwnHQ (envelope-from ) for ; Sun, 25 Sep 2022 13:18:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mIQ1AwE5MGOMFwAAauVa8A (envelope-from ) for ; Sun, 25 Sep 2022 13:18:25 +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 BAD962BA75 for ; Sun, 25 Sep 2022 13:18:24 +0200 (CEST) Received: from localhost ([::1]:39784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocPeR-0008FM-SQ for larch@yhetil.org; Sun, 25 Sep 2022 07:18:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocPT1-0000od-Hk for emacs-orgmode@gnu.org; Sun, 25 Sep 2022 07:06:36 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:44802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocPSz-0002rk-Go for emacs-orgmode@gnu.org; Sun, 25 Sep 2022 07:06:35 -0400 Received: by mail-lf1-x12c.google.com with SMTP id i26so6730761lfp.11 for ; Sun, 25 Sep 2022 04:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date; bh=R9KnGTiCNjij4MzCYjgxC8GjtWk9GUaXKJ+r6vy8thw=; b=NSy+7bZCQrp8WfSTL60l/T0TIhlhvR4h5N2nvEwNsMBwxR5rJ9++KTBxqi0WbhOPep qW57B+SajJOSV+MbuJ/yqARe6tFK7RvBCvRtXFXwDojc3sqEFrVmshZoUwTDHbilAHL5 U/DqyVs8aQG+fSgQPpLs9+EP1W731g7CeIQnPnDOTHRO/zUrPv2RW7m9ENB9GI9Oi09X TrnqPoKdvQ+AjmvZsWICEfwdxF8e+bRHnnsLTgsdKREygrfRdkqfO/6MyTSN7TFuuLhW FuBQW6jpnykBjXJTFyeNEoYzOApC4SO+TrdtUm69o3QTZPj9f5nKOvHx7R5DXumOFYIi /obQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date; bh=R9KnGTiCNjij4MzCYjgxC8GjtWk9GUaXKJ+r6vy8thw=; b=E50k7f5uUydf1Njr9a2JRdq0M0SNj1N6Cplrlww0Oot0YBGbLTLXbP/k4qtx5s0z/x pKEcML6T6eCTurxDZZqAIwFPTHKEQ2DP6mzLLj6mbrUapUBEHVyGFm4kh+NzxbBt8m+8 JqLQnBorktRSgZwSwDfX6fH//03WO7RCEviJcuVkmuC8xEShhKzUqvcF+dE31pXzDBjT kWmRhzZXCngJsYnwU9bfaYiB5NEsi4SK59rn77F1h8MKf7rnQOq169CxndI4mI5/27Ar hYf5mmkI18xIjI3MOnzhxT6vepzKrPvePf48WoPRS0Wkh9xl9poabpSanDeaNRUBsSnT djlg== X-Gm-Message-State: ACrzQf1Yh7E+XbuO05i/0dzPxyyH0vgDyMpDgqbv6UqFdALRTunXWXyv gb68jQBplFRFtjmPRL5zAWOnyEcMS2E= X-Google-Smtp-Source: AMsMyM4o6r+dCoEBT/mkQIu/rq0Mq79kTfl0sqd+rbEcq0A9adKBS0ESNF8KqmL7wtJ2Ky36dXGKNA== X-Received: by 2002:a05:6512:234a:b0:49d:3155:45a7 with SMTP id p10-20020a056512234a00b0049d315545a7mr6203022lfu.245.1664103988697; Sun, 25 Sep 2022 04:06:28 -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 z13-20020a05651c11cd00b0026a92616cd2sm2066670ljo.35.2022.09.25.04.06.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Sep 2022 04:06:25 -0700 (PDT) Message-ID: <6933a2b6-b860-3535-f7f0-fcd156c68a83@gmail.com> Date: Sun, 25 Sep 2022 18:06:23 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Opening of links Content-Language: en-US From: Max Nikulin To: emacs-orgmode@gnu.org Cc: Guillaume MULLER References: <563301a7-1ad2-e155-636e-a2b8814b608d@emse.fr> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -58 X-Spam_score: -5.9 X-Spam_bar: ----- X-Spam_report: (-5.9 / 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=-3.766, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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=1664104704; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=R9KnGTiCNjij4MzCYjgxC8GjtWk9GUaXKJ+r6vy8thw=; b=bQqAzPMwu/QlVKMCJaXkNpsfkhWACGmxnsPo43yqt7QnLdz5Grdx8ZOSARr8IhVKTuweaK JP40JMJON2QYIZ8DQbudnZ+VB7Yzf4il4QYNgYjYFeUJkQ9jhCfrxMh+FQumX/NGrFsbtJ XkFbXhhOBnBoeYUd22zQHbkCvBG/xgQFHZRYB2jth16V/LMFvedUso7zIFKv1+itmgEdVD aztjGULTwAWjYcqXhg6qgWzKlm7eeMQ2Y7lbpvoCb3fHMuWjMGCwLquhhF+lHmaLWNSb7A UpeFSYQpMduw6Dma7k5JxieOFwtsL27bwILrzFy7TbUtxXC1xs9/XltF5+YJLA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664104704; a=rsa-sha256; cv=none; b=grvz+JB2tQigNgHSkTtBKxvgohqmRVMnCZgol3en1O5dRFH36JEPk+eVZouZLR2bFysjbq ztfeesHSMX6Alzj9haILJx5uNGcVZ9a/abuD/c+0s8ZhCYi0uOYxVqQuhAEHv+VAdc6Qvc HWrWpOjzJrK/4sgnxxJE9kgxoL9jGqfBCP+h8f1ZztdqvHjvqKQa9AWucvxNGwENe+7x3f I42xfl7CdzqKHzvR19pE3KoAjVvzPh6tfKgERD8f6Av/QPQi76sV4EF6kWRn51stCsJX+S VwY9Ky3QIAGT4fkXgf+Nn2aFe5FyP70bJvizjA5d5Eh4yyCyed+e4QOUvsgztw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=NSy+7bZC; 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: 7.85 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=NSy+7bZC; 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: BAD962BA75 X-Spam-Score: 7.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: +7dv3Db7UBm6 On 24/09/2022 18:49, Max Nikulin wrote: > On 23/09/2022 21:49, Guillaume MULLER wrote: >> >> - My OS settings are configured so that PDFs are opened in Evince. I >> configured this with "xfce4-settings-manager > Default Applications" >> (which runs "xfce4-mime-settings" under the hood) and it can be >> verified with "xdg-open test.pdf" or by opening Thunar and clicking on >> "test.pdf". > > I would name it desktop environment configuration since OS may have more > settings and it is your issue. > > These settings likely alters ~/.config/mimeapps.list > https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-1.0.html > > "Association between MIME types and applications" > > Unfortunately Emacs does not support this part of XDG specs, so there > are no ready to use functions to work with .desktop files and MIME > associations. You may add entries calling xdg-open for file types you > wish to the `org-file-apps' custom variable. Likely the following entry in `org-file-apps' to override maicap by xdg-open may allow to achieve what you expect: (system . (lambda (file _link) (browse-url-xdg-open file)))) However links with page numbers (supported for "docview:" type out of the box) will not work with such generic handler.