Description
GDM cannot launch sway when using an NVIDIA GPU.
sway
requires a command line argument --unsupported-gpu
to launch.
Fedora Workstation has a writable /usr/
partition, and thus the relevant .desktop file (/usr/share/wayland-sessions/sway.desktop
can be edited to append the argument.
To Reproduce
- Install Fedora Silverblue
- Overlay the
sway
package - Try to launch
sway
using the .desktop file present in /usr/share/wayland-sessions using GDM by clicking the gear icon and selecting “Sway”
Expected behavior
GDM launches the sway session using user specified command line arguments.
OS version:
State: idle
BootedDeployment:
● fedora:fedora/37/x86_64/updates/silverblue
Version: 37.20221119.0 (2022-11-19T02:24:07Z)
BaseCommit: 5cb8231a9e9cf033c4c78f4e42d6e27cb8d391901a1a277c3797e81257c61669
GPGSignature: Valid signature by ACB5EE4E831C74BB7C168D27F55AD3FB5323552A
RemovedBasePackages: firefox firefox-langpacks 106.0.4-1.fc37
LayeredPackages: akmod-nvidia asusctl distrobox gnome-tweaks
NetworkManager-strongswan-gnome rpmfusion-free-release
rpmfusion-nonfree-release sway waybar xorg-x11-drv-nvidia-cuda
xorg-x11-drv-nvidia-power
Laptop Hardware:
Hardware Model: ASUSTeK COMPUTER INC. ROG Zephyrus G14 GA401QH_GA401QH
Memory: 16.0 GiB
Processor: AMD Ryzen™ 7 5800HS with Radeon™ Graphics × 16
Graphics: NVIDIA GeForce GTX 1650 / AMD Radeon™ Graphics
OS Name: Fedora Linux 37.20221119.0 (Silverblue)
Does anyone have any suggestions as to how to run sway with GDM?