Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Questions about bash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1200

PostPosted: Wed Nov 01, 2023 8:36 pm    Post subject: Questions about bash Reply with quote

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
View user's profile Send private message
pingtoo
l33t
l33t


Joined: 10 Sep 2021
Posts: 926
Location: Richmond Hill, Canada

PostPosted: Wed Nov 01, 2023 9:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1200

PostPosted: Wed Nov 01, 2023 9:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Wed Nov 01, 2023 9:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
pingtoo
l33t
l33t


Joined: 10 Sep 2021
Posts: 926
Location: Richmond Hill, Canada

PostPosted: Wed Nov 01, 2023 9:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum