Ask Your Question

Why did changing my shell to fish break PATH in Gnome Shell?

asked 2017-12-29 04:33:04 -0500

stoatally gravatar image

I've recently added some tools and applications that I want to run in ~/.local/bin, as part of this process I installed fish and changed it to be my default shell. Everything was going well, I could run these tools from the terminal without having to specify the path, and the PATH variable was showing ~/.local/bin as being included. The .desktop files I had setup in ~/.local/share/applications also worked great.

I then restarted, suddenly ~/.local/bin is not in my PATH and nothing works as it did previously.

I then configured fish to update the path automatically like so:

set -U fish_user_paths ~/.local/bin $fish_user_paths

This allowed me to run my tools from the terminal, however the .desktop files still won't work.

Is it possible to configure my environment on login to set the path for both fish and gnome? Bash should already work as it's configured by default in ~/.bash_profile.

edit retag flag offensive close merge delete



I assumed this got swallowed since I got a service unavailable response when posting it.

stoatally gravatar imagestoatally ( 2017-12-29 04:49:10 -0500 )edit

Servers seem to be a little weak unfortunately. Not sure why, but do let us know how sideburns' response works out :)

abadrinath gravatar imageabadrinath ( 2017-12-30 03:17:25 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-29 16:21:56 -0500

sideburns gravatar image

Welcome to ask.fedora. I've not heard of that shell before, but a little searching found this Documentation on setting environment variables when you log in. Your configuration file is ~/.config/fish/ and unlike most shells, you don't have to export your new path after setting it. (Note that there's an example of modifying the PATH variable included.) I don't know what that set command actually does, but in bash, at least there isn't an option of U. My suggestion is to copy the example of setting the PATH, changing it to add what you need and try again. In either case, please come back and let us know how things work out.

edit flag offensive delete link more

Question Tools


Asked: 2017-12-29 04:33:04 -0500

Seen: 144 times

Last updated: Dec 29 '17