octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65251] Octave needs Xwayland for launching de


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #65251] Octave needs Xwayland for launching despite being a native Wayland application
Date: Sun, 4 Feb 2024 12:05:22 -0500 (EST)

Follow-up Comment #5, bug#65251 (group octave):

When Octave starts, it tries to determine whether there is a graphical display
available.  If there is, it attempts to open the graphical user interface. 
Otherwise, it attempts to open a command-line interface in a terminal.

In the old days, a reasonable way to do that on a Unix-like system was to
check whether the DISPLAY environment variable was set.

The code is here: 
http://hg.savannah.gnu.org/hgweb/octave/file/4b99c92fc2b2/src/display-available.c

There are currently three separate ways we attempt to detect whether a
graphical display is available.  The code path to use is selected by the
configuration variables OCTAVE_USE_WINDOWS_API, HAVE_FRAMEWORK_CARBON, and
HAVE_X_WINDOWS.  If we need another special case for Wayland, what should the
code be and how do we detect that case?

See also

http://hg.savannah.gnu.org/hgweb/octave/file/4b99c92fc2b2/libinterp/corefcn/cdisplay.c

http://hg.savannah.gnu.org/hgweb/octave/file/4b99c92fc2b2/configure.ac#l1784

http://hg.savannah.gnu.org/hgweb/octave/file/4b99c92fc2b2/configure.ac#l1804

http://hg.savannah.gnu.org/hgweb/octave/file/4b99c92fc2b2/oct-conf-post-private.in.h#l54





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65251>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]