GNU bug report logs -
#49034
[PATCH] profiles: Add 'load-profile'.
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Tue, 15 Jun 2021 08:14:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
Maxime Devos <maximedevos <at> telenet.be> skribis:
> Ludovic Courtès schreef op di 15-06-2021 om 10:13 [+0200]:
>> +(define %precious-variables
>> + ;; Environment variables in the default 'load-profile' white list.
>> + '("HOME" "USER" "LOGNAME" "DISPLAY" "TERM" "TZ" "PAGER"))
> [...]
>> -;; Protect some env vars from purification. Borrowed from nix-shell.
>> -(define %precious-variables
>> - '("HOME" "USER" "LOGNAME" "DISPLAY" "TERM" "TZ" "PAGER"))
>
> This is really a separate issue, but I don't understand why "XAUTHORITY"
> isn't in the list. Without preserving XAUTHORITY, the following won't work
> (at least on my desktop environment):
>
> guix environment --pure --ad-hoc atril -- atril stuff.pdf
> # No protocol specified
> # Cannot parse arguments: Cannot open display:
>
> But the following does start atril:
> guix environment --preserve=XAUTHORITY --pure --ad-hoc atril -- atril stuff.pdf
> # A window titled ‘Atril Document Viewer’
>
> Could "XAUTHORITY" be added to the list?
> Preserving "DISPLAY" but not "XAUTHORITY" seems rather useless to me,
> at least on my desktop environment.
Agreed, I’ll do that.
Thanks,
Ludo’.
This bug report was last modified 4 years and 29 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.