all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Castillo <castilma@uni-bremen.de>
To: help-guix@gnu.org
Subject: Re: to enable all profiles at login time
Date: Mon, 17 Apr 2023 16:30:01 +0200	[thread overview]
Message-ID: <0b483b8f-2399-ea66-80fb-a2c1e20139e4@uni-bremen.de> (raw)
In-Reply-To: <20230417145501.6b733ec8.koszko@koszko.org>

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/.profile


So 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


  reply	other threads:[~2023-04-17 14:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-16 13:09 to enable all profiles at login time Gottfried
2023-04-16 20:18 ` Wojtek Kosior via
2023-04-17  7:37   ` Gottfried
2023-04-17 11:56     ` Wojtek Kosior via
2023-04-17 12:45       ` Gottfried
2023-04-17 12:55         ` Wojtek Kosior via
2023-04-17 14:30           ` Martin Castillo [this message]
2023-04-17 14:55           ` Gottfried
2023-04-17 20:15             ` Wojtek Kosior via
2023-04-18 15:19               ` Gottfried
2023-04-17 18:32         ` Sergiu Ivanov
2023-04-20 10:11           ` Gottfried
2023-04-20 10:20             ` Sergiu Ivanov
2023-04-20 11:28               ` Gottfried
2023-04-20 13:51                 ` Sergiu Ivanov
2023-04-17 17:25 ` Giovanni Biscuolo
  -- strict thread matches above, loose matches on Subject: below --
2023-04-19 16:10 Gottfried
2023-04-19 18:19 ` Martin Castillo

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=0b483b8f-2399-ea66-80fb-a2c1e20139e4@uni-bremen.de \
    --to=castilma@uni-bremen.de \
    --cc=help-guix@gnu.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.
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.