Cnchi icon indicating copy to clipboard operation
Cnchi copied to clipboard

Cnchi setting env variables in `/etc/profile` and `/etc/environment` causes problems.

Open kminehart opened this issue 7 years ago • 1 comments

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:

  1. 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.

kminehart avatar Apr 30 '17 15:04 kminehart

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.

hitex avatar Dec 29 '17 07:12 hitex