Re: How to extend the PATH environment variable in Gnome Shell on Wayland
cedlemo schreef op 18-06-2018 18:47: I want to add some personnal directories to the PATH environment variable in order to be able to run my ruby/gtk3 applications via the run command prompt (Alt+F2). I have this in my ~/.profile and my ~/.bashrc: PATH=/home/cedlemo/.gem/ruby/2.5.0/bin:$PATH it works fine on the Xorg backend but not on the Wayland backend. Does export PATH work? ___ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list
Re: How to extend the PATH environment variable in Gnome Shell on Wayland
Hi! On Mon, 2018-06-18 at 18:47 +0200, cedlemo wrote: > Hi, > I want to add some personnal directories to the PATH environment > variable in order to be able to run my ruby/gtk3 applications via the > run command prompt (Alt+F2). > I have this in my ~/.profile and my ~/.bashrc: > PATH=/home/cedlemo/.gem/ruby/2.5.0/bin:$PATH I use ~/.config/environment.d/ for this (I'm on Fedora). Unfortunately it is overwritten by the defaults in Bash (regardless of whether I set any PATH in ~/.bashrc or not. I'm pretty sure you can just source the files under ~/.config/environment.d/ from ~/.bashrc though but I haven't bothered testing it. My PATH variable: $ cat ~/.config/environment.d/80-path.conf # This is overwritten by bash currently PATH=$HOME/.local/bin:$GEM_HOME/bin:$HOME/.cabal/bin:$PATH Regards, Mattias ___ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list
Re: How to extend the PATH environment variable in Gnome Shell on Wayland
On Tue, 2018-06-19 at 11:55 +0200, mattias.jc.bengts...@gmail.com wrote: > Hi! > [...] > I'm pretty sure you can just source the > files under ~/.config/environment.d/ from ~/.bashrc though but I > haven't bothered testing it. Yep, this worked fine for me (in ~/.bashrc): for f in ${HOME}/.config/environment.d/*.conf; do source "${f}" done That way you get your shell session and the environment.d vars in sync. ___ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list
Re: How to extend the PATH environment variable in Gnome Shell on Wayland
@Mattias, Thanks for taking the time to answer me. Unfortunatly, it does not work, I have this: λ › cat ~/.config/environment.d/80-ruby.conf PATH=/home/cedlemo/.gem/ruby/2.5.0/bin:$PATH regards Cédric Le Moigne On 19/06/2018 11:55, mattias.jc.bengts...@gmail.com wrote: Hi! On Mon, 2018-06-18 at 18:47 +0200, cedlemo wrote: Hi, I want to add some personnal directories to the PATH environment variable in order to be able to run my ruby/gtk3 applications via the run command prompt (Alt+F2). I have this in my ~/.profile and my ~/.bashrc: PATH=/home/cedlemo/.gem/ruby/2.5.0/bin:$PATH I use ~/.config/environment.d/ for this (I'm on Fedora). Unfortunately it is overwritten by the defaults in Bash (regardless of whether I set any PATH in ~/.bashrc or not. I'm pretty sure you can just source the files under ~/.config/environment.d/ from ~/.bashrc though but I haven't bothered testing it. My PATH variable: $ cat ~/.config/environment.d/80-path.conf # This is overwritten by bash currently PATH=$HOME/.local/bin:$GEM_HOME/bin:$HOME/.cabal/bin:$PATH Regards, Mattias ___ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list
Re: How to extend the PATH environment variable in Gnome Shell on Wayland
tjoen, no it does not change anything. thanks Cédric Le Moigne On 19/06/2018 07:47, tj...@dds.nl wrote: cedlemo schreef op 18-06-2018 18:47: I want to add some personnal directories to the PATH environment variable in order to be able to run my ruby/gtk3 applications via the run command prompt (Alt+F2). I have this in my ~/.profile and my ~/.bashrc: PATH=/home/cedlemo/.gem/ruby/2.5.0/bin:$PATH it works fine on the Xorg backend but not on the Wayland backend. Does export PATH work? ___ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list ___ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list
Re: How to extend the PATH environment variable in Gnome Shell on Wayland
Hi! On Tue, 2018-06-19 at 19:51 +0200, cedlemo wrote: > @Mattias, > > Thanks for taking the time to answer me. Unfortunatly, it does not > work, > I have this: > > λ › cat ~/.config/environment.d/80-ruby.conf > PATH=/home/cedlemo/.gem/ruby/2.5.0/bin:$PATH Hm, I'm sorry I don't know anything further. You'll probably have to consult your distribution for this. This is the specification FWIW: https://www.freedesktop.org/software/systemd/man/environment.d.html Good luck! Regards, Mattias ___ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list