Score:1

How do I set alacritty with working-directory option as default terminal in Xubuntu?

jp flag

I'm setting up Xubuntu (so I'm using the default Desktop Environment xfce) and just changed my default terminal to alacritty by modifying the terminal utility in the "Default Applications" tool.

That worked fine apart from one thing: When I start Alacritty for example from desktop right-click "Open Terminal here", it's started with working directory set to ~/Desktop, I would like for this to be just ~ instead. How do I achieve this?

I tried to modify the application string from /usr/bin/alacritty "%s" to /usr/bin/alacritty --working-directory=/home/moberg "%s" but it doesn't seem to have any effect, it still starts up with ~/Desktop as cwd.

I don't want to set the alacritty configuration working_directory because when I open new terminal windows from elsewhere I would like for them to keep the current working directory.

BeastOfCaerbannog avatar
ca flag
*Open Terminal here* should open your terminal in your current directory. Are you selecting this option from within your `Downloads` directory? If so, this is the intended behavior.
jp flag
Oh I'm stupid. Thanks! It was actually working, it's opening in `~/Desktop` (not Download as I incorrectly wrote). I just didn't realize it was "open _here_" even though the button says so >.>
Score:1
jp flag

"Open Terminal Here" will open the terminal at the current folder, so if you right click on the desktop it will open in ~/Desktop.

If you open it from the applications menu (top right in xfce) it will start in your selected working directory: ~.

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.