|
From: | Martin Castillo |
Subject: | Re: to enable all profiles at login time |
Date: | Mon, 17 Apr 2023 16:30:01 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 |
Hi,
5. is there also a possibility to enable all my profiles when I log in to my MATE desktop?So that all applications (including terminal emulators, regardless of their configuration) open with them already enabled? There's no such possibility I know of :/
There is a way and I think it may even be standardized.On my non-guix distro I use sddm as display-manager. On login, it executes /usr/share/sddm/scripts/Xsession as my user.
It contains: 9 case $SHELL in 10 */bash) 11 [ -z "$BASH" ] && exec $SHELL $0 "$@" 12 set +o posix 13 [ -f /etc/profile ] && . /etc/profile 14 if [ -f $HOME/.bash_profile ]; then 15 . $HOME/.bash_profile 16 elif [ -f $HOME/.bash_login ]; then 17 . $HOME/.bash_login 18 elif [ -f $HOME/.profile ]; then 19 . $HOME/.profile 20 fi ... 41 */fish) 42 xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX` 43 $SHELL --login -c "/bin/sh -c 'export -p' > $xsess_tmp" 44 . $xsess_tmp 45 rm -f $xsess_tmp 46 ;; 47 *) # Plain sh, ksh, and anything we do not know. 48 [ -f /etc/profile ] && . /etc/profile 49 [ -f $HOME/.profile ] && . $HOME/.profileSo it does try to find shell specific config files (for those that it knows about).
You need to know what display-manager (the program where you log in to your user) you use and look at its documentation to see what files it may source before it logs you in.
In that case, you don't need to launch bash as login shell in your terminal, because all the profiles are activated when you login.
Martin
[Prev in Thread] | Current Thread | [Next in Thread] |