Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 89729223A9E for <~alpine/users@lists.alpinelinux.org>; Sat, 23 Aug 2025 11:52:58 +0000 (UTC) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5457B240101 for <~alpine/users@lists.alpinelinux.org>; Sat, 23 Aug 2025 13:52:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net; s=2017; t=1755949977; bh=G5mGALRHtCYuZsx6fOMk+xa5ZJvIkImjCiM/s+Z/QTs=; h=Mime-Version:Content-Transfer-Encoding:Content-Type:Date: Message-Id:Subject:From:To:From; b=qAA6bFPS7AE++NA8YP4qe9E3+EJ/moYR+KFNXy0Jjb9jOtZflgUeFfevEd8o3pbsv KXXvzz6kvGk37lzBy9++NCa+Ct3cTbDzHzg9SZKkHadLYrgSWidrUWxeuzcUzQ2+QP Gl46wUqPrUyn77lXsLPp13aP046ugQTzyKOU04eBw3QkXmkjL2O7AKsOp44vZJmJHM XXE5NLO9qGYd/LYf/LWKKzpQHyjzMmAayoXaCxog8rL4pCHYawmaB19DzfIPs7kIn5 mwek4XHl0YZFEXD8XmWQ/a7JFwWC2mAD7y5I8OOsKGVGAl1T3KdBGe/vO/aXTuLH2E YBDLjgD/nekLw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4c8Fmm2zDYz9rxS; Sat, 23 Aug 2025 13:52:56 +0200 (CEST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 23 Aug 2025 11:52:56 +0000 Message-Id: Subject: Re: Doas environment not right? From: "Sertonix" To: "Ian Smith" , <~alpine/users@lists.alpinelinux.org> References: <20250823120637.4cd62e59@bonsai.doitto.me.uk> In-Reply-To: <20250823120637.4cd62e59@bonsai.doitto.me.uk> > According to the doas(1) manpage: > > "The variables DISPLAY and TERM are inherited from the current > environment." > > This is incorrect: > > $ env|grep -e TERM -e DISPLAY > TERM=3Dxterm-256color > DISPLAY=3Dlocalhost:10.0 > > $ doas su - > # env|grep -e TERM -e DISPLAY > TERM=3Dxterm-256color The - option of su clears the environment. If you do 'doas env' it will lis= t DISPLAY. > This prevents me from e.g. running gparted from an XFCE panel launcher. > > # gparted > > (gpartedbin:15313): Gtk-WARNING **: 12:03:23.389: cannot open display:=20 > > Have I missed something? Maybe 'doas gparted' is what you want?