Cnchi
Cnchi copied to clipboard
Cnchi setting env variables in `/etc/profile` and `/etc/environment` causes problems.
Problem:
Cnchi really shouldn't be setting environment variables in /etc/profile
or /etc/environment
. Setting BROWSER
, for example, causes other browsers to fail to be set as default using the standard method of xdg-settings set default-web-browser <browser>.desktop
, resulting in
xdg-settings: $BROWSER is set and can't be changed with xdg-settings
Steps To Reproduce:
- Install Antergos with Chromium enabled
2.
BROWSER=/usr/bin/chromium
will be in/etc/profile
and/etc/environment
, and then in your default$HOME/.bashrc
.
Taking over $BROWSER prevents other browsers from being set as default.
I spent last hour trying to figure out why setting google-chrome as default browser is not working in clean Antergos install. I even deselected Chromium option in Cnchi and selected Firefox instead, but even then BROWSER=/usr/bin/chromium
line was added to my /etc/profile
. Seems like a bug to me.