Score:0

Opening terminal by default in home directory does not work

bm flag

I am using Ubuntu 22.04. The terminal that it opens from desktop context menu is the gnome-terminal. By default it opens it on the ~/Desktop directory. I want to modify the default directory without changing .bashrc. I've encountered a suggestion to add --working-directory=$HOME to the "Exec" entry of /usr/share/applications/org.gnome.Terminal.desktop. It does not work - the terminal still opens on "~/Desktop".

Any ideas?

Freddy

Will avatar
id flag
Is there a particular reason why you can’t edit .bashrc?
cn flag
This should provide useful information: https://askubuntu.com/q/1435378/398785
FreddyBZ avatar
bm flag
From what I know - modifying directory in .bashrc has other side effects.
FreddyBZ avatar
bm flag
@egmont thanks, now I understand it better. Looks like clicking “Open in Terminal” on the desktop opens the terminal in the desktop directory always. Makes sense - though it’s not what I wanted…
Score:0
tc flag

Open terminal first then from the hamburger buttons (3 lines just after the search icon) select preferences. Head to your profile and then go to "command" header.Modify "preserve working directory". You have to choose either "Always" or "Shell only"

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.