fix(user_commands.bash): create /usr/share/wayland-sessions if it isn't there yet

This commit is contained in:
BluishHumility
2024-10-16 21:44:12 -04:00
parent f1ff44b4bb
commit a7b0f623e0

View File

@@ -15,6 +15,7 @@ if pacman -Qq nvidia-inst 2>/dev/null | grep -q .; then
# Add the --unsupported-gpu flag to the sway call in greetd.conf
sed -i 's|sway -c|sway --unsupported-gpu -c|' sway/etc/greetd/greetd.conf
# Create a custom desktop file that uses sway --unsupported-gpu
mkdir -p /usr/share/wayland-sessions
cat <<EOF > /usr/share/wayland-sessions/sway-nvidia.desktop
[Desktop Entry]
Name=Sway-Nvidia