Skip to content
Snippets Groups Projects
Verified Commit b38cab6a authored by Aleksei Bavshin's avatar Aleksei Bavshin
Browse files

sddm: don't check for virtualization if start-sway is sourced

parent 5ca76fd3
No related branches found
No related tags found
No related merge requests found
......@@ -3,16 +3,18 @@
# Add sddm config file to the arguments
set -- --config /etc/sway/sddm-greeter.config "$@"
## Set some compatibility variables in case if sway-config-fedora is not present
if systemd-detect-virt --quiet --vm; then
export WLR_NO_HARDWARE_CURSORS=1
export WLR_RENDERER=pixman
fi
# Try to use a wrapper script from sway-config-fedora
if [ -x /usr/bin/start-sway ]; then
# shellcheck source=../sway/start-sway
. /usr/bin/start-sway
else
exec sway "$@"
# unreachable
exit 1
fi
# Set some compatibility variables in case if sway-config-fedora is not present
if systemd-detect-virt --quiet --vm; then
export WLR_NO_HARDWARE_CURSORS=1
export WLR_RENDERER=pixman
fi
exec /usr/bin/sway "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment