Received: (at 72448) by debbugs.gnu.org; 9 Aug 2024 09:27:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 09 05:27:37 2024 Received: from localhost ([127.0.0.1]:37685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1scLuK-0001NW-Kj for submit <at> debbugs.gnu.org; Fri, 09 Aug 2024 05:27:36 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:32950 helo=eauchat.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <sl@HIDDEN>) id 1scLuI-0001NH-3Y for 72448 <at> debbugs.gnu.org; Fri, 09 Aug 2024 05:27:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1723195618; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qv55Ge4DEx3+kbFp5Nz3XobBUVwJhj2vM/yIajQT7NI=; b=M/PtFIYwPX5JyYFJdhgQLcwd3n2SHpv5wQYyy2osN98Le/UovQZbPskj/J8+GYAIE6XDe0 ZI785s5mm8vZLCuj2mgFXFK0hOmaT/jE98qCsJuESEa64dKdafntcYT49hsrWHxcouiA3d /lwWXWp4zpRX9zgmKx8mSgLNXcAHabo= From: =?utf-8?Q?S=C3=A9bastien_Lerique?= <sl@HIDDEN> To: Liliana Marie Prikler <liliana.prikler@HIDDEN> Subject: Re: "xdg-mime query filetype" fails silently on many filetypes (with fixes I see) In-Reply-To: <c8a9b1b5d1e8cfb414ee9ff0d01926f62aeab3b8.camel@HIDDEN> (Liliana Marie Prikler's message of "Sun, 04 Aug 2024 11:23:03 +0200") References: <87y15djw1g.fsf@HIDDEN> <c8a9b1b5d1e8cfb414ee9ff0d01926f62aeab3b8.camel@HIDDEN> Date: Fri, 09 Aug 2024 11:26:56 +0200 Message-ID: <87wmkq9hcv.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72448 Cc: 72448 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 04 Aug 2024 at 11:23, Liliana Marie Prikler <liliana.prikler@HIDDEN> wrote: >> Why? I don't know. I guess having a "case ..." instead of "if ... fi" >> would solve this. > Could you prepare a patch to do so? Or has one already been proposed > upstream? > I can have a look and submit next month I'd say, being a little underwater currently :) >> 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. > Note: In GNOME, prefer `gio open', it's part of glib:bin. > On other desktops, I don't know what the preferred solution would be. > So "gio open" works indeed from the shell, but doomemacs only works using "gnome-vfs", for a reason I can't figure out yet. Best
bug-guix@HIDDEN
:bug#72448
; Package guix
.
Full text available.Received: (at 72448) by debbugs.gnu.org; 4 Aug 2024 09:24:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 04 05:24:35 2024 Received: from localhost ([127.0.0.1]:55518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1saXTf-000143-9U for submit <at> debbugs.gnu.org; Sun, 04 Aug 2024 05:24:35 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:48257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <liliana.prikler@HIDDEN>) id 1saXTd-00013a-Eo for 72448 <at> debbugs.gnu.org; Sun, 04 Aug 2024 05:24:34 -0400 Received: by mail-ed1-f68.google.com with SMTP id 4fb4d7f45d1cf-5a15692b6f6so13545649a12.0 for <72448 <at> debbugs.gnu.org>; Sun, 04 Aug 2024 02:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722763387; x=1723368187; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=b2ncwCZa1qSeGMTVEPbf5F951TcouDgjGhgBmBSGkLg=; b=V4ycIxPJDfPfkwVDf9Ys3KvhYT9S80iobiDtdF5AsFXktK11b9CFiPLpRk+TYH2X34 dhESfOzbho3pLIMhjS89RC/Ay0invQWZ6vvQypwde9AqG/PNL6qHB4hAL2CSTEAb/rwT 7TNa2axsSh+1fTQSU6+FAQdOVyKKrQCYfudnBlqEOdzGVBY8JZ2RQX585wb54WvGvfLn zYYRbMj1vbpGA2Fo4R3hFSezpC5GA//Qat0YVzAc83/qfUj/0b2MKyN5NarRAHkPyNTn y/7JQFfDertAQV93l2StH1iU7KZSKU1rBHeSHRXU38y6MaLD2isge93G4B7qmR6WKjmG 3q/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722763387; x=1723368187; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=b2ncwCZa1qSeGMTVEPbf5F951TcouDgjGhgBmBSGkLg=; b=Qz0UrMmhMV9Lz3HbJyAGuyiD0Nuaj+tGDfzEuUu5FXOPwCHIbhYytuqXv96Ukwxkcy C79b3vlQkEM6gKEi6LQ/kUS8xi9hrojulggFeUtFK8MOplcrSoVlneJAa0btFnIlhfV+ SxxNR4okXtfT7D8iti5vwut7PmkvasJ3fHYDP063TWEEktg6Kk9yOJpVVvgn5/pWn33E YaitFDwXtVlKBwU/pqRyakBvHmtdL9qZrgofJyOmW8SGy4oHNxc23ly+1fkQnEczEoQA v0Su99zL7rMAjGPL4DNehDQiCtyAdPqHmUzaX+vF05gYlqXq0bTBi+g+CjMVt12WNXR5 H51g== X-Forwarded-Encrypted: i=1; AJvYcCWJgASxqPL1ydkn0GRNxyxkmxdinhNZmoMMLZqSkds3Z7GF4MhWF3JpFy5nBMz/lb5BQK8BrbuKvcZCYJUKlJPZJeI3734= X-Gm-Message-State: AOJu0YzEZumtlGNhvGqxR6gOcAExtuxcrp1H4YmFi5f+78rRKc8m1tkF lsgObHqc2FtHvO5RACIcWr5grbu0J5nx/aCjeR1izG9HDDAy/vrx X-Google-Smtp-Source: AGHT+IF7CxUKlWx8IYlCSgu8TH3o1xyoyHbuKOTsK1ELf4humETiIdtYhYxGLMscECwqAihz83qfzg== X-Received: by 2002:a17:907:60cd:b0:a7d:c46b:2241 with SMTP id a640c23a62f3a-a7dc4fae424mr713878266b.29.1722763386407; Sun, 04 Aug 2024 02:23:06 -0700 (PDT) Received: from lumine.fritz.box (85-127-20-124.dsl.dynamic.surfer.at. [85.127.20.124]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9ec8d7fsm309376766b.219.2024.08.04.02.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 02:23:05 -0700 (PDT) Message-ID: <c8a9b1b5d1e8cfb414ee9ff0d01926f62aeab3b8.camel@HIDDEN> Subject: Re: "xdg-mime query filetype" fails silently on many filetypes (with fixes I see) From: Liliana Marie Prikler <liliana.prikler@HIDDEN> To: =?ISO-8859-1?Q?S=E9bastien?= Lerique <sl@HIDDEN>, 72448 <at> debbugs.gnu.org Date: Sun, 04 Aug 2024 11:23:03 +0200 In-Reply-To: <87y15djw1g.fsf@HIDDEN> References: <87y15djw1g.fsf@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72448 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Am Samstag, dem 03.08.2024 um 20:33 +0200 schrieb S=C3=A9bastien Lerique: > Ahoy Guix! >=20 > "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. >=20 > 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). >=20 > 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. >=20 > Why? I don't know. I guess having a "case ..." instead of "if ... fi" > would solve this. Could you prepare a patch to do so? Or has one already been proposed upstream? > But the result is "exit_success" gets called whatever the situation, > and xdg-mime often gives no output, which then bugs "xdg-open". >=20 > 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?) >=20 > 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. Note: In GNOME, prefer `gio open', it's part of glib:bin. =20 On other desktops, I don't know what the preferred solution would be. Cheers
bug-guix@HIDDEN
:bug#72448
; Package guix
.
Full text available.Received: (at submit) by debbugs.gnu.org; 3 Aug 2024 18:34:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 03 14:34:32 2024 Received: from localhost ([127.0.0.1]:54784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1saJaK-00087O-II for submit <at> 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 <sl@HIDDEN>) id 1saJaF-000878-Rb for submit <at> 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 <sl@HIDDEN>) id 1saJZu-0006NN-Do for bug-guix@HIDDEN; 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 <sl@HIDDEN>) id 1saJZr-0003gl-CZ for bug-guix@HIDDEN; 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?= <sl@HIDDEN> To: bug-guix@HIDDEN Subject: "xdg-mime query filetype" fails silently on many filetypes (with fixes I see) Date: Sat, 03 Aug 2024 20:33:47 +0200 Message-ID: <87y15djw1g.fsf@HIDDEN> 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@HIDDEN; 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-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) 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/
Sébastien Lerique <sl@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#72448
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.