diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2022-04-06 12:15:18 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2022-04-11 22:04:23 +0200 |
commit | e931ddb6a4df848545b092e77c14fa1f67738a75 (patch) | |
tree | 7a5b8c21fe018435541b445d5ed6de29bc055456 /units/graphics | |
parent | a9b20853b9d170d2db29d624767de67b320d5dfc (diff) |
graphics:cycle_resolutions: Add support for wayland sessions
Diffstat (limited to 'units/graphics')
-rw-r--r-- | units/graphics/jobs.pxu | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/units/graphics/jobs.pxu b/units/graphics/jobs.pxu index d67af9e..435a628 100644 --- a/units/graphics/jobs.pxu +++ b/units/graphics/jobs.pxu @@ -225,7 +225,12 @@ depends: graphics/VESA_drivers_not_in_use command: # shellcheck disable=SC1091 source graphics_env.sh {driver} {index} - xrandr_cycle.py --screenshot-dir "$PLAINBOX_SESSION_SHARE" + if [[ $XDG_SESSION_TYPE == "wayland" ]] + then + gnome_randr_cycle.py --screenshot-dir="$PLAINBOX_SESSION_SHARE" + else + xrandr_cycle.py --screenshot-dir="$PLAINBOX_SESSION_SHARE" + fi estimated_duration: 250.000 _summary: Test resolution cycling for {vendor} {product} _description: |