On Thu, Sep 10, 2026 at 06:38:27 +0200, [email protected] wrote:
> On Wed, Sep 09, 2026 at 12:33:49PM -0700, Thomas Dineen wrote:
> > Coded in C, built on Debian with native gcc
> > 
> > App uses C GTK2 Cairo
> > 
> > Konsole
> > echo $DISPLAY
> > :0
> > 
> > Mate
> > echo $DISPLAY
> > wayland-0
> > 
> > X-Term
> > echo $DISPLAY
> > :0
> > 
> > Do I just need to do a setenv?
> 
> Worth a try. If you start the application from the command
> line anyway, just prefix the environment assignment like
> so:
> 
>   DISPLAY=:0 <your-application>
> 
> This should work.

If Thomas is using "setenv", he might be in csh/tcsh, in which case
he'd need to use

    env DISPLAY=:0 <your-application>

to get the desired effect.  However, I'm deeply curious about the
results he's reporting.  Are "Konsole" and "Mate" both terminals
that are running in the same session?  How do we explain the
different values of $DISPLAY if they are?

Of course, if those results are from different sessions, or even
different computers, then that explains it.

Reply via email to