Score:0

.profile not read anymore after upgrade to 22.04. How to debug?

br flag

Yesterday I upgraded my desktop to 22.04.1.

Somehow my custom commands in ~/bin/ are not found anymore.

It seems I have to manually source .profile in every terminal.

Yes, I have a manually created .bash_profile for a long time, but that worked fine in 20.04.

What has changed in 22.04?

And how do you actually debug such a problem: how can you check which config files are read and which aren't?

Can't find it in syslog.

Score:1
in flag

The top of ~/.profile, the default with the installation of 22.04, states:

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.

Some more useful info here: Why isn't .profile sourced when opening a terminal?

jp flag
Dan
btw, this isn't a new change in 22.04. As far as I know, it's been like this for a long time.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.