From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oGaaGGd4rmb1aQAAe85BDQ:P1 (envelope-from ) for ; Sat, 03 Aug 2024 18:35:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oGaaGGd4rmb1aQAAe85BDQ (envelope-from ) for ; Sat, 03 Aug 2024 20:35:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=lyciC9de; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b="YuD6t/Kw"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=eauchat.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722710119; 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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RYThSZ2fvGpNtpr5oFLLSDzNzuNiz4syH92I7Cyl4LY=; b=jwTFqQU9rFLv3Of34lADvl83MmFuz5Dpjn8Td9J6qj3Ab57wm7hoLD0g9Gh6YZwK4dIeO8 UFrNQdflbjFnxlp0H7ytxP3ARsfHbW61mZ37N8c8YALwaMnJExhnQtcIlzxPjFjoo9G/ze oA/BFQsrwzl6Crra52EgRPbUmDMAAmFseW/qWoGdzzxZ9AX1pqFHcimXuQ/WhsH69Vr1xE QXGkj8wbWO2QtRBnVkxAG2o2Pl+Uk/ny8wH9z18/EiEy7Qs6tkibVism5RhfrJAY0Nyd6a ve0MevEwsD098mT52QkdUCkZ2Eb5mxGCL6u4pHq2EoH0WHLua96nX+S9TGVKVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=lyciC9de; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b="YuD6t/Kw"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=eauchat.org (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722710119; a=rsa-sha256; cv=none; b=FhUNqN6Qgl/rQWqTPPbQcMjKtSZTj7nyFaS4RqyFMojqOMqLJ/DB/jYjlQb65MqLnrLnOL Mc1lTUbFNzXBvRChsiOVbW1gxLNUYiVF3npjKuLORu/GrxluNt/ulAiYWiem0wkiXdEh86 /7K2e3pYdt4gVio3rM5bfreZBrOHG4KV3ZDh5+JWaVdiaI0CBZmI/FLQCwQK2epGOIFyte gW0Qlr1Yo+iN9XkViHuNcApgW9x42qtRtPNgfhUXIMd8nLt0veCqgtd4zfbt+DmSjHH2VG VMzEEQ/nKRh8ofzIlQNGqLYIudlX/cc/ibzxAAokz1FdMAtO0RmRPdABgH74eQ== 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 C8AC464028 for ; Sat, 3 Aug 2024 20:35:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1saJaZ-0006RH-KP; Sat, 03 Aug 2024 14:34:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1saJaV-0006Qz-6R for bug-guix@gnu.org; Sat, 03 Aug 2024 14:34:43 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1saJaU-0003jd-Sv for bug-guix@gnu.org; Sat, 03 Aug 2024 14:34:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=RYThSZ2fvGpNtpr5oFLLSDzNzuNiz4syH92I7Cyl4LY=; b=lyciC9de61pe2xZHuLqF8B1xMcMgD0CcWlpPHAJJbxnm+ahU5c/PDCEiBOGiaUeFIDmCQuRVj2cvhF7veWQXOOYChOsFug9rJe9OwRGi2+sqYS7Hl70WuEgBM8futwILkBdnxnLCkFWv/eFunfAjaGWGSV0+f7OnSFpFYGFai+Xbk1RFki0j97b9R2ucFTOw/DaIXv7QGN9LHHz5iEjdxXncBahUq/4nujputcffZKUZw+qnOHCWBJFYpPp/6c6xr1UiDbHXKaKixLC1hQ9eJa+1rEg7TV+MGs/8JIDCAJnfSHc42qkNj30sAiPvAypxSg+kWPXoQqELI26lWhgORQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1saJao-00089C-J7 for bug-guix@gnu.org; Sat, 03 Aug 2024 14:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#72448: "xdg-mime query filetype" fails silently on many filetypes (with fixes I see) Resent-From: =?UTF-8?Q?S=C3=A9bastien?= Lerique Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 03 Aug 2024 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72448 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 72448@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172271007331215 (code B ref -1); Sat, 03 Aug 2024 18:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Aug 2024 18:34:33 +0000 Received: from localhost ([127.0.0.1]:54784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saJaK-00087O-II for submit@debbugs.gnu.org; Sat, 03 Aug 2024 14:34:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:41514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saJaF-000878-Rb for submit@debbugs.gnu.org; Sat, 03 Aug 2024 14:34:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1saJZu-0006NN-Do for bug-guix@gnu.org; Sat, 03 Aug 2024 14:34:06 -0400 Received: from elegua.eauchat.org ([91.224.149.118] helo=eauchat.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1saJZr-0003gl-CZ for bug-guix@gnu.org; Sat, 03 Aug 2024 14:34:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1722710037; h=from:from: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; bh=RYThSZ2fvGpNtpr5oFLLSDzNzuNiz4syH92I7Cyl4LY=; b=YuD6t/KwWz8RdJLuSWapVNfxkS9pBUwIxkzSl01EF2haYCfA2sFhQAOl1BfmmzCUhojM+R p/oXo6ijd8pq2lBTAiyM/9zCwTM7lMgzc54hcKg9hcDvkejbJT9upkPpkF8J8bomx13sg8 ZcLU+yUcGt1oTPH2ggorZSOQms553pI= From: =?UTF-8?Q?S=C3=A9bastien?= Lerique Date: Sat, 03 Aug 2024 20:33:47 +0200 Message-ID: <87y15djw1g.fsf@eauchat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=91.224.149.118; envelope-from=sl@eauchat.org; helo=eauchat.org 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: C8AC464028 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.25 X-Spam-Score: -8.25 X-TUID: 9HO+3n48zS5u Ahoy Guix! "xdg-mime query filetype a-book.epub" or "whatever.pdf" returns nothing, which is both puzzling and limiting as it blocks "xdg-open" to work for many files. My case was opening pdf or epub files from Emacs, which "xdg-open" always sends to the browser, whatever my config (instead of e.g. evince or Foliate). So debugging shows that: in ".xdg-mime-real", (/gnu/store/06ll0ydqsf4bjxwpwsi68dmn2cg0biy6-xdg-utils-1.1.3/bin/xdg-mime points there), l.673-684 in "info_gnome()", even if the "if ... elif ... elif ... fi" fails (i.e. none of "gio", "gvfs-info", or "gnomevfs-info" are available), then l.696 "if [ $? -eq 0 ]" gives always true. Why? I don't know. I guess having a "case ..." instead of "if ... fi" would solve this. But the result is "exit_success" gets called whatever the situation, and xdg-mime often gives no output, which then bugs "xdg-open". Running this in "guix shell gnome-vfs" solves it, but what should be done to fix? And how did this not appear earlier? (is xdg* new?) The options I see are adding the "gnome-vfs" dependency ("gvfs" doesn't provide "gvfs-info", and "gio" is not a package), or proposing "case" instead of "if" upstream. --=20 S=C3=A9bastien Lerique https://slvh.fr/