From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Gibbons Subject: bug#38529: Make --pure the default for `guix environment'? Date: Mon, 09 Dec 2019 10:37:12 -0700 Message-ID: References: <87eexeu8mo.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51884) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ieMyx-0005Nj-ME for bug-guix@gnu.org; Mon, 09 Dec 2019 12:38:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ieMyw-0005q0-Mi for bug-guix@gnu.org; Mon, 09 Dec 2019 12:38:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48428) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ieMyw-0005pm-G1 for bug-guix@gnu.org; Mon, 09 Dec 2019 12:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ieMyw-0003Ty-BW for bug-guix@gnu.org; Mon, 09 Dec 2019 12:38:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87eexeu8mo.fsf@ambrevar.xyz> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Pierre Neidhardt , 38529@debbugs.gnu.org On Sun, 2019-12-08 at 16:42 +0100, Pierre Neidhardt wrote: > --pure seems to be the more sensible behaviour. "Impure" environments > can have unexpected behaviours, so it makes sense to only allow them > when the user explicitly asks for it. > --pure environments sometimes miss important environment variables. Try running any app that depends on X and doesn't fallback to a console mode in a pure environment. for example, "guix environment --pure --ad-hoc pavucontrol -- pavucontrol" gives me an error: No protocol specified Unable to init server: Could not connect: Connection refused Similarly, "guix environment --pure --ad-hoc gnubik -- gnubik" gives me an error: No protocol specified (gnubik:29707): Gtk-WARNING **: 10:03:28.753: cannot open display: :1 "guix environment --pure --ad-hoc gedit -- gedit": No protocol specified Unable to init server: Could not connect: Connection refused (org.gnome.gedit:31542): Gtk-WARNING **: 10:08:07.401: cannot open display: :1 Making --pure the default for "guix environment" would make things more complicated for users wanting to temporarily run GUI apps unless we fix this issue first. I furthermore suspect some tests fail because of this issue.