#!/bin/bash logfile="/dev/shm/chrome_log_$$" google-chrome-stable --enable-features=UseOzonePlatform --ozone-platform=wayland "$@" &> "$logfile" if [[ $? != 0 ]]; then printf 'Check logfile: %s\n' "$logfile" exit $? fi