Re: Bash initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That modification to 'konsole' invocation isn't the right way to do things.  I'd recommend undoing that.

When logging in, you'd always be at a point where .bash_profile is run, as part of logging to the computer; has nothing to do, per se, with plasma regardless of version.  Plasma 6 won't have 'fixed' this.

.bash_profile is only invoked during session login.  Konsole is not accomplishing a login session (and you could have dozens of them open); thus .bashrc is invoked for each one of them.

Since you are already 'logged in' by the time you are able to start 'konsole', then '.bash_profile' was already run for your login session.
If you are making changes to '.bash_profile', then that will take effect the next time you login in.  So, make the change(s), log out completely (no need to reboot) and then log back in.  Then when you open konsole, you should see the change you made be in effect.

Plasma doesn't affect usage/implementation of bash, or the bash user environment, per se.  'bash' being the shell, traditionally defined in /etc/passwd for a given local user, will invoke things upon login, and then for terminal sessions.

Thank you.
-Joe

On Thursday, December 12, 2024 at 11:01:42 AM EST, Barry <barry@xxxxxxxxxxxxxxxx> wrote:




> On 11 Dec 2024, at 22:27, Stephen Morris <steve.morris.au@xxxxxxxxx> wrote:
>
> Just relative to this, with konsole, which is a bash shell apparently, are you saying that when you create a new tab that .bashrc is run in the new tab, but .bash_profile is not and is only run at the initial console startup?

I modify konsole to run `bash -l` so that the .bash_profile is forced to be run.
At one point you could be in the position that .bash_profile was never run in plasma.
I have not checked if plasma 6 fixed this.

Barry
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux