(In reply to Matej Cepl from comment #6) > Hmm, do I understand it correctly, that if I create script > /usr/local/bin/sway it will be run instead of /usr/bin/sway? So, yes, this /usr/local/bin/sway script helps: #!/bin/bash # /etc/profile cannot be sourced, because read-only variable _HOMEBASHRC has # been already set. . $HOME/.profile exec /usr/bin/sway "$@" I wonder whether sourcing of ~/.profile shouldn���������t be made default.