summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Kehayias <john.kehayias@protonmail.com>2024-01-06 17:01:18 -0500
committerJohn Kehayias <john.kehayias@protonmail.com>2024-01-06 17:01:18 -0500
commit1f91ecd3c06ac3275490311ec79bb8f361e9d963 (patch)
treed530fb9e083b5bab0333622628be97dc9d200245
parent7dd68696a2e7052e76b11355bccfe148c1800169 (diff)
nonguix: multiarch-container: Set LD_LIBRARY_PATH inside container.
Fixes #303. Previously LD_LIBRARY_PATH was being set before the container was launched, which could cause issues on some foreign distros where this alters what is loaded from an FHS structure. This was only meant to be set inside the container, though this didn't cause any issues on a Guix System. * nonguix/multiarch-container.scm (make-container-wrapper): Move setting LD_LIBRARY_PATH from here ... (make-internal-script): ... to here.
-rw-r--r--nonguix/multiarch-container.scm14
1 files changed, 10 insertions, 4 deletions
diff --git a/nonguix/multiarch-container.scm b/nonguix/multiarch-container.scm
index 1462881..6cbd14a 100644
--- a/nonguix/multiarch-container.scm
+++ b/nonguix/multiarch-container.scm
@@ -338,10 +338,6 @@ in a sandboxed FHS environment."
338 (args (cdr (command-line))) 338 (args (cdr (command-line)))
339 (command (if DEBUG '() 339 (command (if DEBUG '()
340 `("--" ,run ,@args)))) 340 `("--" ,run ,@args))))
341 ;; Set this so that e.g. non-Steam games added to Steam will launch
342 ;; properly. It seems otherwise they don't make it to launching
343 ;; Steam's pressure-vessel container (for Proton games).
344 (setenv "LD_LIBRARY_PATH" "/lib64:/lib")
345 ;; Set this so Steam's pressure-vessel container does not need to 341 ;; Set this so Steam's pressure-vessel container does not need to
346 ;; generate locales, improving startup time. This needs to be set to 342 ;; generate locales, improving startup time. This needs to be set to
347 ;; the "usual" path, probably so they are included in the 343 ;; the "usual" path, probably so they are included in the
@@ -526,6 +522,16 @@ application."
526 ;; (previous would output this error but continue). 522 ;; (previous would output this error but continue).
527 (if (file-exists? ".steam/root/bootstrap.tar.xz") 523 (if (file-exists? ".steam/root/bootstrap.tar.xz")
528 (chmod ".steam/root/bootstrap.tar.xz" #o644)) 524 (chmod ".steam/root/bootstrap.tar.xz" #o644))
525 ;; TODO: Should other environment setup also happen inside the
526 ;; container rather than before container is launched?
527 ;;
528 ;; Set this so that e.g. non-Steam games added to Steam will
529 ;; launch properly. It seems otherwise they don't make it to
530 ;; launching Steam's pressure-vessel container (for Proton
531 ;; games). Wait to set this inside the container to not cause
532 ;; issues on foreign distros, see
533 ;; <https://gitlab.com/nonguix/nonguix/-/issues/303>
534 (setenv "LD_LIBRARY_PATH" "/lib64:/lib")
529 535
530 ;; Process FHS-specific command line options. 536 ;; Process FHS-specific command line options.
531 (let* ((options (getopt-long (or fhs-args '("")) fhs-option-spec)) 537 (let* ((options (getopt-long (or fhs-args '("")) fhs-option-spec))