• Re (2): Shell function.

    From peter@easthope.ca@21:1/5 to All on Fri May 16 17:30:01 2025
    From: 🦓 <czyborra@gmail.com>
    Date: Thu, 15 May 2025 18:23:59 +0200
    you might wanna background it from your tty

    Currently have this.
    ev () { /usr/bin/evince "$@" & }

    DISPLAY is set in .bashrc now. Not needed in trivial functions.

    Thx, ... p.

    --
    VoIP: +1 604 670 0140
    work: en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to peter@easthope.ca on Fri May 16 17:50:02 2025
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to Greg Wooledge on Fri May 16 19:50:01 2025
    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)