[Unit] Description=The pc gaming platform # order startup after WM After=graphical-session.target [Service] Type=exec # Repurpose XDG Autostart filtering ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "wlroots:sway:Wayfire:labwc:Hyprland" "" ExecStart=/usr/bin/flatpak run com.discordapp.Discord Slice=app-graphical.slice [Install] WantedBy=graphical-session.target # Alternatively can be wanted by specific WMs' targets # Should also be duplicated in 'After=' to avoid ordering loop #WantedBy=wayland-session@hyprland.desktop.target