From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 2CuzG9Woi2Jc8wAAbAwnHQ (envelope-from ) for ; Mon, 23 May 2022 17:31:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aPppGtWoi2LjSAAAG6o9tA (envelope-from ) for ; Mon, 23 May 2022 17:31:33 +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 5F17112C38 for ; Mon, 23 May 2022 17:31:31 +0200 (CEST) Received: from localhost ([::1]:50902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntA1p-0003bR-H6 for larch@yhetil.org; Mon, 23 May 2022 11:31:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt9za-0002dE-Ew for emacs-orgmode@gnu.org; Mon, 23 May 2022 11:29:10 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:43998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nt9zU-0003f1-6p for emacs-orgmode@gnu.org; Mon, 23 May 2022 11:29:06 -0400 Received: by mail-lj1-x233.google.com with SMTP id s5so17627661ljd.10 for ; Mon, 23 May 2022 08:29:03 -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:cc:references:from:in-reply-to :content-transfer-encoding; bh=o0Z5vZEnLjGF/xLt6jGOKzpDLs48PHI1cSR9jHI7N+s=; b=USJhfKPBXS+3Sn5IpIEB5jnkZxvxoK1seg50RPGXKBWqLMd98mraQCMtGhSYnUyLOU DJtYygIkmmwk+YFzzh+R6TKIoK+UmVMTSOE7kzStQ60EydAGRd6WiFVkYqYCQYoAiol2 xgno0WrbhPXlQL9ASxg+KaC9+uSEzT9IDF6+A/Xqp41UHnKxYANpgqQSHzqcyWCN17V5 Eaa6CGYDiH2ty3b5EI70if7yqPZMYXCRSTfamoMm5KVlWV94/nFU+/SASqz8DZ80sQnd DYIbqjOFcZX8CUHm5qBx6odI8VaLgvJEDDD5ZsR7tZ0yA8/B8BqJMmHbdVSedbUwKDf3 xhvQ== 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:cc:references:from:in-reply-to :content-transfer-encoding; bh=o0Z5vZEnLjGF/xLt6jGOKzpDLs48PHI1cSR9jHI7N+s=; b=Xd4PwvYCmMEbbDM0wmyfJiM/61ghzHw7lTIhGuKpCtOoeAM4mDIm00dxmqmU1syHiM c4OhYc9cNWUwuzNgfT/+zj0GCOD9RscvCjX2BC8P2Hg7ck9UEiXpNPxobceO38bb6nH+ YN1zVIOW1MrjCpPnbA762JfkeIqb+pNOgyYWDoW1vlcoFkiHxOLJEHLgyX8MA823px2U AGUNyj4JElvRY5k6kTh2SiIjEmCPle8ow7VJMo8np1e747NSOH4+nJ+k+gPUSGaelQKp wHuIyWldWJ50a7ls83bweZITCHxEgNiz4SZR8+wubDvgzYvuKBwWWvpcTHiXht57PqBw Hymw== X-Gm-Message-State: AOAM531AE7RMz6P8tZsSDnMqNMDUl28r/u+80477TMs2YZ1OyYi19QU+ 75WgUgt0KQrETO+sN6AOif0= X-Google-Smtp-Source: ABdhPJwMXML1UYhznFv7KP1U9yx8NvgD4FoTbihITAKycTXJ4sxvZgXCvGzba8ISWv18lSC0531bUw== X-Received: by 2002:a2e:b990:0:b0:253:e0fa:dbfc with SMTP id p16-20020a2eb990000000b00253e0fadbfcmr7922115ljp.511.1653319741590; Mon, 23 May 2022 08:29:01 -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 y25-20020ac24219000000b0047255d2119esm2027469lfh.205.2022.05.23.08.29.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 08:29:00 -0700 (PDT) Message-ID: <3e677dda-f822-0f49-add3-e1a9c95084e8@gmail.com> Date: Mon, 23 May 2022 22:28:55 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: Bug in 9.5.3 org--file-default-apps Content-Language: en-US To: Craig STCR Cc: emacs-orgmode@gnu.org References: <963d5f94-3fdf-a01b-bc91-edc99222cb34@gmail.com> <87czgeaxir.fsf@localhost> <6615610d-93ae-171f-b554-3f4cc79354cc@gmail.com> <87a6bhc1w6.fsf@localhost> <86692975-4d5f-6933-3227-c6b208f76862@gmail.com> <877d6lbsg5.fsf@localhost> <7c75b724-1ea2-5e3e-cbe6-e1895fd35bd3@gmail.com> <877d6j2htv.fsf@localhost> <87ilq14p6p.fsf@localhost> <87v8u0396t.fsf@localhost> <87ilpz3bi0.fsf@localhost> <0d8e9eb3-8b4f-127b-2293-2dfd182cd2cf@gmail.com> From: Max Nikulin In-Reply-To: <0d8e9eb3-8b4f-127b-2293-2dfd182cd2cf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=manikulin@gmail.com; helo=mail-lj1-x233.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, 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=1653319891; 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=o0Z5vZEnLjGF/xLt6jGOKzpDLs48PHI1cSR9jHI7N+s=; b=aGhIufmIHSbMCm+I/zVq54hGvAb2BqCSKVscj9GUuq2w++iXC5P6R4jM08lzN9KbXzahGU 3oLvK/tVxWqBnKhR3epjJflq+9NKxKWknC8rAyYsGUj89MNdmi9qa6ODoml8mtDAwmwvE9 rJt5BOHvU3oRrorCMPBG3XGp/LJNSCghVZuz2HHWae3VC/xe7o4lsrkM+NSc0GnU0GEkBI 2PcXNnEsTpxO6qvcmd+X8t2R9I4+N8CV5chsBHScNjAF1yVmnh9+fV3yLhXFVEmKjV7arV QTQkK0+EG03omjVjycI3F2rtNbQ4/VCr6xB7wSLnwYcXiGhXbJAzH8n1soJtiw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653319891; a=rsa-sha256; cv=none; b=jGlN2y3GS0UEHdWNFl1Uq1u5Yfc+p7Q3NrEK51MONm+9n2UB18loefKDzgEPo+DSZaCHF2 EdVShN5RBSFqvfsSMZa53fn2oPTGfq/0kA6m7gcr9276EZJ4EoN4MCjR3uYeYqAQweltQV izK1Wu+IgyGbAaOOMO9n3RTm6h0X27J49+HlQVWbOZ/z/iu24QltQzxf0i01xH/NLE+Ggk 9AAEF0zEcdEgzlAM+GCrr/UZ6/Q+LOiI8a8RpyT1uUuwT+pIYTLCBUEMFFi0u6/rpDz3OF qeV+j5CgwLTpgtk41omSPOEhNPz3JNHR/Drotx59g6yh1rYpEgYZ2nO0/ZiGuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=USJhfKPB; 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.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=USJhfKPB; 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: 5F17112C38 X-Spam-Score: 7.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4+/3ed9MyDOe Craig, discussing the issue with Ihor, I sent some messages to the mail list only without your address in Cc. You may check complete thread at https://list.orgmode.org On 23/05/2022 19:40, Craig STCR wrote: > > OK, I did a first-try on this and was unsuccessful, but I'm sure it's > user error.  I need to refresh my knowledge on how to customize > user-local mime database, and that will write-out a new ~/.mailcap, etc, > I think?  I've done it before, but it was awhile ago, and I wasn't > paying attention to ~/.mailcap when I did it.  I know for Gnome I can > create a .desktop file.  But I know there's a way to customize > user-local mime database without Gnome desktop.  I'll take a closer look > when I have a little more time. Debian package scripts (that work on Ubuntu as well) extract MIME info from *system* .desktop files to add them to mailcap database. There were some mailcap related changes and bugs around Emacs-27 release, e.g. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36771 > application/x-shellscript; emacs27 %s; test=test -n "$DISPLAY" Notice that such entry will be ignored when DISPLAY is not set due to specified "test" property. You need to pass X socket and pass or set DISPLAY environment to you "headless" container. update-mime likely assumes that you created ~/.mailcap.order to generate ~/.mailcap from it. Emacs may just read ~/.mailcap, so if you created this file, nothing more is required. Actually I do not think you wish to launch another emacs session in response to following a link in an .org file. I suppose, you experienced https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40247 otherwise (mailcap-mime-info nil) (or "text/plain") would return view-mode and your scripts would be opened in another emacs window. It should work without mailcap entries.