On Fri, May 16, 2025 at 11:41:00AM -0400, Greg Wooledge wrote:
On Fri, May 16, 2025 at 08:05:50 -0700, peter@easthope.ca wrote:
Currently have this.
ev () { /usr/bin/evince "$@" & }
DISPLAY is set in .bashrc now. Not needed in trivial functions.
Why are you setting the DISPLAY variable? That sounds like a really
bad idea. Or, at best, it's only viable in a very specialized setup.
To be more explicit: in the "normal" case, your Xinit (or your desktop environment) sets that variable. Everything starting from there will
inherit it.
You want to set it
- if you want things to happen in some other display (you'll need
access to that one, a whole different story)
- if you are starting things from "outside" (e.g. DISPLAY=:0 xeyes &
will start xeyes even called from a Linux console or from an ssh
session, if other stars align)
Cheers
--
tomás
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCaCd4rwAKCRAFyCz1etHa Ro+qAJwLooEntk3ftkDvW69BzA95KyoztQCdE/olddkaOjUmDmZfCLiMCZpvapU=
=I7lz
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)