Watch /proc for Steam games (by app ID, from Steam's reaper process) and other games (by executable, from Discord's detectable list), and report the first one to Discord's IPC socket with the game's own app ID.
11 lines
199 B
Desktop File
11 lines
199 B
Desktop File
[Unit]
|
|
Description=Show running games in Discord as Rich Presence
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/discord-game-presence
|
|
Restart=on-failure
|
|
RestartPreventExitStatus=2
|
|
|
|
[Install]
|
|
WantedBy=default.target
|