The discord app is able to detect what game or games are running on my system. This surprises me since I have tried to limit the connections available to discord, and thought the sandboxing would prevent that kind of “snooping”.
Here are the connections:
~$ snap connections discord
Interface Plug Slot Notes
browser-support discord:browser-support :browser-support manual
camera discord:camera - -
content[gnome-3-28-1804] discord:gnome-3-28-1804 gnome-3-28-1804:gnome-3-28-1804 -
content[gtk-3-themes] discord:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] discord:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] discord:sound-themes gtk-common-themes:sound-themes -
desktop discord:desktop :desktop -
desktop-legacy discord:desktop-legacy :desktop-legacy -
gsettings discord:gsettings :gsettings manual
home discord:home - -
mount-observe discord:mount-observe - -
network discord:network :network -
network-observe discord:network-observe - -
opengl discord:opengl :opengl -
process-control discord:process-control - -
pulseaudio discord:pulseaudio :pulseaudio -
removable-media discord:removable-media - -
screen-inhibit-control discord:screen-inhibit-control :screen-inhibit-control -
system-observe discord:system-observe - -
unity7 discord:unity7 :unity7 -
wayland discord:wayland :wayland -
x11 discord:x11 :x11 -
In particular, I had assumed removing the “system-observe” would prevent discord from knowing what processes are running. (edit: formatting)