sddm: don't check for virtualization if start-sway is sourced
This commit is contained in:
parent
5ca76fd3af
commit
b38cab6afc
1 changed files with 10 additions and 8 deletions
|
|
@ -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
|
||||
# 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
|
||||
# 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
|
||||
|
||||
# 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 "$@"
|
||||
fi
|
||||
exec /usr/bin/sway "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue