Skip to content

Commit

Permalink
Reverted environment.sh.in to XWayland warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed May 3, 2024
1 parent b5d3e6f commit 24c0d98
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mrv2/bin/environment.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,21 @@ dir=${dir%/*}
export LD_LIBRARY_PATH="${dir}/lib64:${dir}/lib:${LD_LIBRARY_PATH}:/usr/lib64:/usr/lib"
export DYLD_FALLBACK_LIBRARY_PATH="${LD_LIBRARY_PATH}"
export PYTHONPATH="${dir}/lib/python@MRV2_PYTHON_VERSION@:${dir}/lib/python@MRV2_PYTHON_VERSION@/lib-dynload:${dir}/lib/python@MRV2_PYTHON_VERSION@/site-packages:${HOME}/.local/lib/python@MRV2_PYTHON_VERSION@/site_packages:${PYTHONPATH}"

#
# For Linux, when running on Wayland we switch it to run on X11 emulation,
# as Wayland is still too buggy.
#
if [[ "$XDG_SESSION_TYPE" == "wayland" && "$FLTK_BACKEND" == "" ]]; then
echo " Wayland support is currently beta."
echo " If you still want to run FLTK applications with Wayland,"
echo " set the environment variable FLTK_BACKEND to wayland, like:"
echo ""
echo " export FLTK_BACKEND=wayland"
echo ""
if [[ "$FLTK_BACKEND" == "" ]]; then
echo " Setting the environment variable FLTK_BACKEND=x11."
echo ""
export FLTK_BACKEND=x11
fi
fi

0 comments on commit 24c0d98

Please sign in to comment.