View previous topic :: View next topic |
Author |
Message |
Fulgurance Veteran


Joined: 15 Feb 2017 Posts: 1256
|
Posted: Wed Nov 01, 2023 8:36 pm Post subject: Questions about bash |
|
|
Hi everyone, I almost solved all of the problems I have with the generated system by my new package manager.
But one problem is still here.
When I start plasma and I open Konsole, bash don't load /etc/profile. How can I fix that ?
Because I saw normally I should create a file /etc/bash.bashrc, but it fix nothing. I know I can fix the problem by making a .bashrc in the user directory, but I would like to set a general bashrc for all users. _________________ My actual project: https://github.com/Fulgurance/ISM
Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1507 Location: Richmond Hill, Canada
|
Posted: Wed Nov 01, 2023 9:00 pm Post subject: |
|
|
When you spawn bash session add '-l' (--login) option, this will make bash acting as login shell which will always source /etc/profile. |
|
Back to top |
|
 |
Fulgurance Veteran


Joined: 15 Feb 2017 Posts: 1256
|
Posted: Wed Nov 01, 2023 9:10 pm Post subject: |
|
|
I saw that as well, thank you very much, but I would like to setup a default file for everyone _________________ My actual project: https://github.com/Fulgurance/ISM
Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path |
|
Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 20589
|
Posted: Wed Nov 01, 2023 9:24 pm Post subject: |
|
|
Quote: | Konsole doesn't provide convenience for running login shell, because developers don't like the idea of running login shell in a terminal emulator.
Of course, users still can run login shell in Konsole if they really need to. Edit the profile in use and modify its command to the form of starting a login shell explicitly, such as "bash -l" and "zsh -l". | https://docs.kde.org/stable5/en/konsole/konsole/commonissues.html
Via an SO post linking to a PDF. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1507 Location: Richmond Hill, Canada
|
Posted: Wed Nov 01, 2023 9:28 pm Post subject: |
|
|
bashrc and profile is slightly different concept, which do you need? or you need both? profile are sourced only once, whereas rc will be sourced every time bash start up. |
|
Back to top |
|
 |
|