From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Setting default user environments in /etc/profile.d/
Date: Tue, 1 May 2012 20:38:42 +0200 [thread overview]
Message-ID: <20120501203842.2154e2f4@weird.wonkology.org> (raw)
In-Reply-To: <8C573D55-43CA-4450-9FB0-ED86AD58B7FB@stellar.eclipse.co.uk>
Stroller writes:
> Therefore I have created a plain text
> file /etc/profile.d/essential_defaults
[...]
> Yet when I log in, these environment variables are not set.
>
> The file is world-readable (mode 644), and I even tried setting the
> execute bit (`chmod +xxx`).
It needs to be readable by your user, more is not needed.
> If I source the file using `. /etc/profile.d/essential_defaults` then
> suddenly I get the right pager, but it does not seem to be sourced at
> login, as I believe is promised. What am I doing wrong or
> misunderstanding, please?
/etc/profile is sourced for login shells only. That happens when you log
in a text console, but usually not for a graphical terminal. As a KDE
user, I have set my Konsole's profiles to run '/bin/bash -l', this gives
me login shells. For xterm or aterm, you would use the '-ls' option.
Wonko
next prev parent reply other threads:[~2012-05-01 18:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-01 18:11 [gentoo-user] Setting default user environments in /etc/profile.d/ Stroller
2012-05-01 18:20 ` [gentoo-user] " Remy Blank
2012-05-01 19:41 ` [gentoo-user] " Stroller
2012-05-01 18:27 ` Michael Orlitzky
2012-05-01 19:40 ` Stroller
2012-05-02 2:26 ` Pandu Poluan
2012-05-02 4:01 ` Stroller
2012-05-01 18:38 ` Alex Schuster [this message]
2012-05-01 19:42 ` Stroller
2012-05-01 22:52 ` Walter Dnes
2012-05-02 3:58 ` Stroller
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=20120501203842.2154e2f4@weird.wonkology.org \
--to=wonko@wonkology.org \
--cc=gentoo-user@lists.gentoo.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox