On 10/25/22 21:51, Robert Webb wrote:
Would there be any disadvantage to putting the export into .profile, rather than into .bashrc ?
No. .bash_profile is invoked for interactive login shells (when you type your username/pass to login either locally or remotely over ssh, etc..) while .bashrc is invoked for interactive non-login shells (konsole instances). Non-interactive, e.g. is when bash is invoked to run a script. You want DISPLAY set when you login, so it makes sense to go in profile, but openSUSE /etc/profile will source the system bash.bashrc and your $HOME/.bashrc as well. So exports in either profile or bashrc will work even though it's only needed on your actual login. I still recall DISPLAY being set somewhere in the displaymanager, xdm or X11 setup, but picking around, I can't locate it on 15.4 at the moment (there were changes to sysconfig and what you used displaymanager and windowmanager files for over the past couple of releases) So some up to date dev will have to fill in the blanks. -- David C. Rankin, J.D.,P.E.