1 |
On 03.09.20 13:30, Ulrich Mueller wrote: |
2 |
>>>>>> On Thu, 03 Sep 2020, Florian Schmaus wrote: |
3 |
> |
4 |
>> This commit changes env-update so that, after profile.env has was |
5 |
>> generated, a systemd user session environment configuration file named |
6 |
> |
7 |
>> /usr/lib/environment.d/gentoo-profile-env.conf |
8 |
> |
9 |
>> is created, if the directory /usr/lib/environment.d exists. |
10 |
> |
11 |
> Maybe a stupid question, but can't this file just source /etc/profile? |
12 |
|
13 |
Akin to what 96e0294f0892 ("Add env gen to inject full Gentoo PATH to |
14 |
services") in gentoo-systemd-integration does? |
15 |
|
16 |
Unfortunately the answer is 'no', because gentoo-profile-env.conf is not |
17 |
an interactive script, it is just a systemd configuration file. |
18 |
|
19 |
> Maintaining the same information twice doesn't look like the right thing |
20 |
> to do. |
21 |
|
22 |
It's not really maintaining the information twice. The information is |
23 |
maintained at a single point: /etc/env.d |
24 |
And from there is is transformed by env-update already into two |
25 |
different formats: |
26 |
- /etc/profile.env |
27 |
- /etc/csh.env |
28 |
|
29 |
And with that change additionally into |
30 |
- /usr/lib/environment.d/gentoo-profile-env.conf |
31 |
|
32 |
- Florian |