From: Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 42378@debbugs.gnu.org
Subject: bug#42378: [PATCH 2/2] guix-install.sh: Make sure /etc/profile is sourced.
Date: Wed, 15 Jul 2020 22:04:47 +0200 [thread overview]
Message-ID: <20200715200447.605-2-me@tobias.gr> (raw)
In-Reply-To: <20200715200447.605-1-me@tobias.gr>
New users regularly report missing newly-installed programmes and icons.
* etc/guix-install.scm (main): Tell users to log out & back in.
---
etc/guix-install.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index efcc3d81d8..72dc3839e8 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -418,6 +418,7 @@ sys_authorize_build_farms()
sys_create_init_profile()
{ # Create /etc/profile.d/guix.sh for better desktop integration
+ # This will not take effect until the next shell or desktop session!
[ -d "/etc/profile.d" ] || mkdir /etc/profile.d # Just in case
cat <<"EOF" > /etc/profile.d/guix.sh
# _GUIX_PROFILE: `guix pull` profile
@@ -507,6 +508,9 @@ main()
_msg "${PAS}Guix has successfully been installed!"
_msg "${INF}Run 'info guix' to read the manual."
+
+ # Required to source /etc/profile in desktop environments.
+ _msg "${INF}Please log out and back in to complete the installation."
}
main "$@"
--
2.27.0
next prev parent reply other threads:[~2020-07-15 20:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-15 19:33 bug#42378: Improve guix-install.sh's messages Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-15 20:04 ` bug#42378: [PATCH 1/2] guix-install.sh: Suggest running gpg as root Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-07-15 20:04 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix [this message]
2020-07-16 10:22 ` bug#42378: Improve guix-install.sh's messages Ludovic Courtès
2020-07-16 18:17 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200715200447.605-2-me@tobias.gr \
--to=bug-guix@gnu.org \
--cc=42378@debbugs.gnu.org \
--cc=me@tobias.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.