Skip to content

Commit

Permalink
Merge pull request #720 from yast/wayland
Browse files Browse the repository at this point in the history
Wayland
  • Loading branch information
jreidinger committed Apr 6, 2018
2 parents 7a7c53d + 8ddb95e commit 379c316
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 6 09:19:55 UTC 2018 - jreidinger@suse.com

- improve wayland support (bsc#1083907)
- 4.0.65

-------------------------------------------------------------------
Thu Apr 5 17:38:35 UTC 2018 - igonzalezsosa@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

Name: yast2
Version: 4.0.64
Version: 4.0.65
Release: 0
Summary: YaST2 - Main Package
License: GPL-2.0
Expand Down
11 changes: 8 additions & 3 deletions scripts/yast2
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ while true ; do
--kcontrol) Y2UI_ARGS="$Y2UI_ARGS --kcontrol_id YaST" ; shift ;;
--qt) export CMDLINE_UI="qt" ; shift ;;
--gtk) export CMDLINE_UI="gtk" ; shift ;;
--ncurses) unset DISPLAY ; shift ;;
--ncurses) unset DISPLAY ; unset WAYLAND_DISPLAY ; shift ;;
--) shift ; break ;;
*) echo "Unrecognized option $1" ; exit 1 ;;

Expand Down Expand Up @@ -304,6 +304,7 @@ case "`basename $0`" in
YaST|yast|yast1|zast)
if [ -z "$CMDLINE_UI" ]; then
unset DISPLAY;
unset WAYLAND_DISPLAY;
fi
;;
esac
Expand Down Expand Up @@ -335,9 +336,13 @@ fi

# Fallback GUI
SELECTED_GUI=ncurses
# if we have a DISPLAY, select a preferred GUI
if [ -n "$DISPLAY" ]; then
# if we have a DISPLAY or WAYLAND_DISPLAY, select a preferred GUI
if [ -n "$DISPLAY" -o -n "$WAYLAND_DISPLAY" ]; then
select_gui_frontend
# for wayland only environment, switch qt to use it
if [ -n "$WAYLAND_DISPLAY" -a -z "$DISPLAY" ]; then
export QT_QPA_PLATFORM=wayland
fi
fi

if [ -n "$TESTING_YAST2" ]; then
Expand Down

0 comments on commit 379c316

Please sign in to comment.