* Re: Help-Guix Digest, Vol 89, Issue 35
[not found] <mailman.2930.1681985495.30476.help-guix@gnu.org>
@ 2023-04-20 12:52 ` Gottfried
2023-04-20 14:20 ` Martin Castillo
2023-04-20 14:22 ` Martin Castillo
0 siblings, 2 replies; 3+ messages in thread
From: Gottfried @ 2023-04-20 12:52 UTC (permalink / raw)
To: help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 2521 bytes --]
Hi,
gfp@Tuxedo ~$ ps $(ps -p $(pidof Xorg) -o ppid=)
PID TTY STAT TIME COMMAND
1114 tty8 Ssl+ 0:00
/gnu/store/58hc6rh72z3r6zqazmavjnwbcyy6gkps-gdm-42.0/libexec/gd
it shows gdm-42.0 as my display manager
..........................................................................
> A quick search makes me think gdm sources .xprofile. So adding
>> source ~/.bash_profile
>> to ~/.xprofile should work.
this is in my .zprofile file, after adding the second sentence/your proposal
# Honor system-wide environment variables
source /etc/profile
# all Profile beim Start des Displays Managers öffnen
source ~/.bash_profile
..........................................................................
but it didn’t help to enable all profiles at login.
Kind regards
Gottfried
> Date: Wed, 19 Apr 2023 20:19:45 +0200
> From: Martin Castillo <castilma@uni-bremen.de>
> To: help-guix@gnu.org
> Subject: Re: to enable all profiles at login time
> Message-ID: <884d32da-1ab4-2755-098f-76f04d75f80a@uni-bremen.de>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hi,
>
> Am 19.04.23 um 18:10 schrieb Gottfried:
>>
>>> but when starting MATE Desktop all my profiles are not enabled.
>>
>> graphical sessions environment is not controlled by .bash_profile (or
>> .profile)
>
> If sddm is used, this statement is false. Does source that file (if bash
> is the users shell) and therefore it influenced the environment
> variables of all applications started the graphical environment.
>
> Gottfried, what display-manager do you use?
>
> Maybe this command can tell you:
> $ ps $(ps -p $(pidof Xorg) -o ppid=)
>
> Martin
>
>
> Message: 3
> Date: Wed, 19 Apr 2023 20:54:29 +0200
> From: Martin Castillo <castilma@uni-bremen.de>
> To: help-guix@gnu.org
> Subject: Re: Help-Guix Digest, Vol 89, Issue 29
> Message-ID: <5d84de6a-4076-a7cd-40f4-23e1808ee787@uni-bremen.de>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hi,
>
> sorry for the other mail, I just saw this one.
>
> Am 19.04.23 um 18:05 schrieb Gottfried:
>> Hi,
>>
>> thanks for help
>>
>> I have MATE 1.24.1 Desktop
>> and GDM as display manager
>>
>
> A quick search makes me think gdm sources .xprofile. So adding
> source ~/.bash_profile
> to ~/.xprofile should work.
>
> [1]: Somewhat helpful archwiki entry:
> https://wiki.archlinux.org/title/environment_variables#Graphical_environment
>
>
> Martin
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help-Guix Digest, Vol 89, Issue 35
2023-04-20 12:52 ` Help-Guix Digest, Vol 89, Issue 35 Gottfried
@ 2023-04-20 14:20 ` Martin Castillo
2023-04-20 14:22 ` Martin Castillo
1 sibling, 0 replies; 3+ messages in thread
From: Martin Castillo @ 2023-04-20 14:20 UTC (permalink / raw)
To: help-guix
Hi,
Am 20.04.23 um 14:52 schrieb Gottfried:
> Hi,
>
> gfp@Tuxedo ~$ ps $(ps -p $(pidof Xorg) -o ppid=)
> PID TTY STAT TIME COMMAND
> 1114 tty8 Ssl+ 0:00
> /gnu/store/58hc6rh72z3r6zqazmavjnwbcyy6gkps-gdm-42.0/libexec/gd
>
> it shows gdm-42.0 as my display manager
> ..........................................................................
>> A quick search makes me think gdm sources .xprofile. So adding
>>> source ~/.bash_profile
>>> to ~/.xprofile should work.
>
> this is in my .zprofile file, after adding the second sentence/your
> proposal
>
> # Honor system-wide environment variables
> source /etc/profile
> # all Profile beim Start des Displays Managers öffnen
> source ~/.bash_profile
> ..........................................................................
>
> but it didn’t help to enable all profiles at login.
Ok, I can think of 2 potential problems. 1) xprofile is not read on
login or 2) something is wrong with the lines in .bash_profile that
should activate the profiles.
To test 1) add
echo reading xprofile on $(date) >>~/login.log
to your .xprofile and logout and back in.
If this file is really sourced on login, you should find the file
~/login.log with a line saying something like reading xprofile on Do 20.
Apr 16:13:21 CEST 2023.
If login.log does not exist, then maybe ~/.xprofile is not executable?
Try chmod +x ~/.xprofile and re-login.
If login.log exists, then there seems to be something wrong with the
lines that should activate the profiles in .bash_profile.
To test 2) start a login shell with a clean environment
env - bash -l
and check whether that shell has all the profiles activated. If not,
there is something wrong with your .bash_profile. You should post that then.
Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help-Guix Digest, Vol 89, Issue 35
2023-04-20 12:52 ` Help-Guix Digest, Vol 89, Issue 35 Gottfried
2023-04-20 14:20 ` Martin Castillo
@ 2023-04-20 14:22 ` Martin Castillo
1 sibling, 0 replies; 3+ messages in thread
From: Martin Castillo @ 2023-04-20 14:22 UTC (permalink / raw)
To: help-guix
Small correction to the mail I just sent:
Instead of
env - bash -l
you might need to use
env - $(which bash) -l
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-04-20 16:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.2930.1681985495.30476.help-guix@gnu.org>
2023-04-20 12:52 ` Help-Guix Digest, Vol 89, Issue 35 Gottfried
2023-04-20 14:20 ` Martin Castillo
2023-04-20 14:22 ` Martin Castillo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).