• Re: XFCE-terminal doesn't have .profile items

    From Greg Wooledge@21:1/5 to Eben King on Tue Jan 14 19:00:01 2025
    On Tue, Jan 14, 2025 at 12:10:47 -0500, Eben King wrote:
    When I run xfce-terminal, I don't get the aliases defined in .profile but I do get the ones from .bashrc. I run X as "startx" from a console login, so somewhere along the line someone's dropping the ball.

    Your aliases should be defined in .bashrc, NOT in .profile.

    Opening a terminal runs a NON-login shell, which only reads .bashrc.
    This is the normal and expected behavior.

    The only time .profile is read is when you run a LOGIN shell, which
    happens if you login via ssh, or on a text console, or if you explicitly request one via command line options.

    .profile should set environment variables, umask, resource limits, and
    other things that can be inherited.

    .bashrc should set aliases, functions, shell options, and other things
    that cannot be inherited.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eben King@21:1/5 to All on Tue Jan 14 18:20:02 2025
    When I run xfce-terminal, I don't get the aliases defined in .profile but I
    do get the ones from .bashrc. I run X as "startx" from a console login, so somewhere along the line someone's dropping the ball.

    So what's the proper fix to this? Telling xfce-terminal to spawn a login
    shell works, but clutters "w" output. Apparently xterm does something
    similar. Is that the tradeoff, an extra entry in 'w' for each *term* tab,
    no matter which approach I take?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)