Re: How to set global environment variables in Guix System

2020-12-27 Thread Lo Peter
Thanks both for the replies. If I understand correctly, custom environment variables could be added through some kind of session-environment-service-type, I will try it out to learn more. Just for the record, I currently use a custom ~/.xsession script as a hack to source ~/.xprofile to set the

Re: How to set global environment variables in Guix System

2020-12-27 Thread Tobias Geerinckx-Rice via
Michael Rohleder 写道: (simple-service 'my-ibus-ch-env session-environment-service-type '(("GTK_IM_MODULE" . "ibus") ("QT_IM_MODULE" . "ibus"))) ...much simpler. Thanks! Kind regards, T G-R signature.asc Description: PGP signature

Re: How to set global environment variables in Guix System

2020-12-27 Thread Tobias Geerinckx-Rice
Peter! Lo Peter 写道: ~/.pam_environment I don't think we configure PAM to look at this by default. I'm not sure why GDM doesn't load ~/.profile (it may be right not to -- most of these files are abused). I'd never heard of ~/.xprofile. Any help is greatly appreciated. Also, I think a

Re: How to set global environment variables in Guix System

2020-12-27 Thread Michael Rohleder
Lo Peter writes: > Any help is greatly appreciated. Also, I think a way to let user > customize /etc/environment through the system config will be useful, > but I do not find a way to do so. Try adding something like this to your system services: (simple-service 'my-ibus-ch-env

How to set global environment variables in Guix System

2020-12-27 Thread Lo Peter
Dear All, I am trying to setup ibus-rime for Chinese input in guix system 1.2.0, after a lot of googling and trial and error, I found that I cannot set the needed environment variables: export GTK_IM_MODULE="ibus" export QT_IM_MODULE="ibus" export XMODIFIERS="@im=ibus" I have tried putting them