From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eLknGgr0GGeYMwEAe85BDQ:P1 (envelope-from ) for ; Wed, 23 Oct 2024 13:03:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eLknGgr0GGeYMwEAe85BDQ (envelope-from ) for ; Wed, 23 Oct 2024 15:03:06 +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=UJeUBI5A; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=TCAaZLMm; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729688586; a=rsa-sha256; cv=none; b=QRnI+vO/E9Ds+90QiHzJFYZ+dVxlqH1UBgT0r/OAxu284gHG2pAns4aMX/TnJef2Dp3EZM fSYcFWkvfhalyJbbFHLzCfxZfz8q6IV0kdGI1BvFWJSiPjlf0skxNlCrX3ihoh3fwLujjL lnilZqSce5vLr7yKXyNigFNVN76NUGjrnflAlUvD3O5SnBpxqjcEKs/CyGjns46/uX/y3K JXQrmkVRmY1Gq6FmrkzGTtKwwVJLXS2m1kmQDsX+pgc2lBWpXe5c2VuhQ3NLfOxkf8o9SK NtOnL9CXVEd1Pk7Tc8G5C2+1WX16hA4wxH0gdWmump7tCPET0Bild40J4V0UhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=UJeUBI5A; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=TCAaZLMm; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729688586; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=StKJKWtcqscYowsZ0NfIDtQ47PekmFM3KzAKfiOKhfs=; b=QYbTj4/iVNX7p66XSXBhZXHfcOLnSn9EgmV8kiqMA1kIUdPQvzQa/cFk5fZSPM/kZ8LJxg 2lLDovgaSmVOaYLyj+OgQZ3FifqOojPoBaFy6ACRI2qdMi84LiTxJMpE3jB3rjiRkg59bg B/WMgo7m7iBwf5pSBHhGni0pGbhsOD3eDoE09AoKWxhE2NzrPNMAxJ1W9VGgIoJHq5D/ma Ms/gpC8oXr3PoudRnZHmoWWGdnge14vZHwHmZD7eXxhrg9AJWjRuJaMY8ZOFbgZiARMFHW WRNBp/1vLCvgIo4bDbw1kwu5zZfp6CRQi9dgLeFMc3uBDyFQEPvAyphEwkXIQw== 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 876AD1C54B for ; Wed, 23 Oct 2024 15:03:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3b0X-0001O7-It; Wed, 23 Oct 2024 09:02:37 -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 1t3b0U-0001Ns-51 for bug-guix@gnu.org; Wed, 23 Oct 2024 09:02:34 -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 1t3b0T-0007vE-O3 for bug-guix@gnu.org; Wed, 23 Oct 2024 09:02:33 -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:References:In-Reply-To:From:To:Subject; bh=StKJKWtcqscYowsZ0NfIDtQ47PekmFM3KzAKfiOKhfs=; b=UJeUBI5AX9/0HEbgv86uqvBGfG/O13e3bG4HiuHE7rS17Ww2p+4OmVixiW5LRST1lUGxw+qnVduCdxfcg6K7BQ8XGedHsH8PNtapNfphdMX/NnPPDzibA+xaeBUf0/P77pFHl/A6bP8m/hvAJXYZACBY2E3IkrFXBgrkL26MMc99lXMf3m4KUFnpOg2du7JJAm21Rj1amihp5XxE3gNlM/VdB3janB25XxvtppZ6p0ZbSnpL28NCsJFZMBOhNYed4TqmzN7vY4v+sBZkpFYX1EZIpWTp545v5t78Aerq52YC3BTUr/neV+72M9KxTC2ToBRPHP/Z7s8kjGTbE3FSkQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3b0w-0002jk-Ii for bug-guix@gnu.org; Wed, 23 Oct 2024 09:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#73897: QT_PLUGIN_PATH is set by guix home and causes flameshot error (Ubuntu 22.04.5 LTS) Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 23 Oct 2024 13:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73897 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Rodrigo Morales Cc: 73897@debbugs.gnu.org Received: via spool by 73897-submit@debbugs.gnu.org id=B73897.172968857710508 (code B ref 73897); Wed, 23 Oct 2024 13:03:02 +0000 Received: (at 73897) by debbugs.gnu.org; 23 Oct 2024 13:02:57 +0000 Received: from localhost ([127.0.0.1]:58972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3b0r-0002jQ-3b for submit@debbugs.gnu.org; Wed, 23 Oct 2024 09:02:57 -0400 Received: from [209.85.214.177] (port=50461 helo=mail-pl1-f177.google.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3b0o-0002j1-DT for 73897@debbugs.gnu.org; Wed, 23 Oct 2024 09:02:55 -0400 Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-20c767a9c50so63730595ad.1 for <73897@debbugs.gnu.org>; Wed, 23 Oct 2024 06:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729688469; x=1730293269; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=StKJKWtcqscYowsZ0NfIDtQ47PekmFM3KzAKfiOKhfs=; b=TCAaZLMmrGrTtna0z7cM4BTBeuLeYN6/hOAbTVQlgIgFXsLO8BWGnSFHWZhqJi0kuv 3u8rvTJj17FQSpJwOfO3EAwBMiSczJoLEGV5Ysp5NBhKNY6EphjQaWxMFQhFiSd3PFAF lZ4reGWFDdxK2bHlzcWXSiOqdjVpImABuhNtfAcLwflMsZCF+F03dqH7cUOphY87f8+V rt7RVDwVYzuf9BT4TVv0rewFOylLxM7MhpoCDEvyr1S5UiYpZQnWdtJi2wFYj90uuDs3 DvdIVqacUP1cRk5ih12DGAdEImU9/hE6vFlseCq4ewLZNrcAzV9ZglHleaQiDlAVLvNQ MJ1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729688469; x=1730293269; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=StKJKWtcqscYowsZ0NfIDtQ47PekmFM3KzAKfiOKhfs=; b=KRor2XcPo9kMNGKrqe9sY3vlSCEJfvvwWQ6fpzyHC2Xre7KRphGIboTVNJOSAl02bE xQkRDfe6NlLnGCOKqs3dulUoi0lVXtt3J57oZPGhZJ1WTOH3hsKI+BbOOe77msAQp0P8 nbn/iuK5ceeIaPfhMAnYzMD5RkVmyV85dkVJpUe0pnAGoGkJ2UG9KKLMART8/NBdm5Vh fPLLbtIE5fqhb+GRMtaBtebn0yNeQmM0QIusRyUpg5VJ4KYFcwphyhO7T6q/7pbqNM9x dXeJ42HH0P+vFJ54qdj6XbDqJj7rWjknCXq5npEKpzJNW+qu/7TUeJ30Jb2usgOFJPVz Jiew== X-Gm-Message-State: AOJu0YwEfUqNcvwgjQ22P12eHkVlQvNEUcvgd4e273Kedh0kwafAHUAL KQYUcYkldFuTL/+PRR6KrUvxhX2/Epo11jkdq6/LozcyjA5SpHevRtRLUQ== X-Google-Smtp-Source: AGHT+IH1Rw5yOfzi2EWwgxf5WigMO6v2adtdzwUcSqdg6zAhudFucBrYFMdzcCGB5rNUSnwk8xOg/A== X-Received: by 2002:a17:902:e54e:b0:20c:a189:c006 with SMTP id d9443c01a7336-20fab2da201mr31367895ad.45.1729688468430; Wed, 23 Oct 2024 06:01:08 -0700 (PDT) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20e7ef17332sm57292065ad.110.2024.10.23.06.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 06:01:07 -0700 (PDT) From: Maxim Cournoyer In-Reply-To: <875xpn7ci3.fsf@morales.pe> (Rodrigo Morales's message of "Sat, 19 Oct 2024 21:07:48 -0500") References: <875xpn7ci3.fsf@morales.pe> Date: Wed, 23 Oct 2024 22:01:01 +0900 Message-ID: <87plnrynw2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -0.76 X-Spam-Score: -0.76 X-Migadu-Queue-Id: 876AD1C54B X-Migadu-Scanner: mx10.migadu.com X-TUID: m02cOzTs5LMt Hi Rodrigo, Rodrigo Morales writes: > I am using "guix home" for managing my dotfiles in Ubuntu 22.04.5 LTS. > > I noticed that the environment variable =QT_PLUGIN_PATH= is set to > paths contained within ~/.guix-home and ~/.guix-profile (see first > code block below.) This created an error when trying to run the binary > flameshot which was installed through =sudo apt install flameshot= > (see second code block below.) > > #+BEGIN_SRC text > $ env | grep -i qt > QT_ACCESSIBILITY=1 > QT_IM_MODULE=ibus > QMAKEPATH=/home/rodrigo/.guix-home/profile/lib/qt5:/home/rodrigo/.guix-profile/lib/qt5 > QT_PLUGIN_PATH=/home/rodrigo/.guix-home/profile/lib/qt5/plugins:/home/rodrigo/.guix-profile/lib/qt5/plugins > #+END_SRC > > #+BEGIN_SRC text > $ flameshot gui ; echo Exit code: $? > qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. > This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. > > Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx. This reminds me of bug#54129, and also that Guix used to cobble up PYTHONPATH for its own use, which would interfere with a foreign distribution's Python installation. Perhaps Qt could be patched to, on top of the usual environment variable, accept GUIX_ prefixed ones that would be used by the Guix search paths. This way Qt from Guix would be able to discover its installed Qt modules without interfering with the host Qt. Meamwhile, you also use flameshot from Guix instead, to resolve your immediate issue. -- Thanks, Maxim