Enable Discord Rich Presence (eg. playing games, listening to spotify, etc)

Enable Discord Rich Presence in Bazzite/Bluefin/Aurora

  • Makesure you have Discord installed
  1. Use BoxBuddy to create an arch distrobox, I used the bazzite variation.

It took me around 10mins to set it up
Youtube video tutorial for distrobox:

  1. Install Yay on your arch distrobox:
sudo pacman -Syu
sudo pacman -S --needed base-devel git
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
  1. Install Owner avatar linux-discord-rich-presence
yay -Syu linux-discord-rich-presence
  1. Test
linux-discord-rich-presence -c ~/.config/linux-discord-rich-presencerc
  1. Export the distrobox binary so you can use it directly from your native terminal
 distrobox-export --bin /usr/bin/linux-discord-rich-presence --export-path $HOME/.local/bin
  1. Configure it to start at every login
mkdir -p ~/.config/systemd/user
nano ~/.config/systemd/user/discord-rich-presence.service

Add this to the file and save

Description=Discord Rich Presence Service

Description=Discord Rich Presence Service

ExecStart=/home/{YOUR_USERNAME}/.local/bin/linux-discord-rich-presence -c %h/.config/linux-discord-rich-presencerc


Replace {YOUR_USERNAME} with your actual username

  1. Enable and Start the service
systemctl --user enable discord-rich-presence.service
systemctl --user start discord-rich-presence.service
  1. Test
systemctl --user status discord-rich-presence.service

You should get an output like the following it should say “active” instead of “failed”

discord-rich-presence.service - Discord Rich Presence Service
     Loaded: loaded (/var/home/sam/.config/systemd/user/discord-rich-presence.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/user/service.d
     Active: active (running) since Fri 2024-06-07 18:20:15 UTC; 15min ago

PS. If it shows failed, make sure you replace your actual username with “{YOUR_USERNAME}” in step 6. And run the following commands to reload and test again:

systemctl --user daemon-reload
systemctl --user restart discord-rich-presence.service
systemctl --user status discord-rich-presence.service

PSS. If it still shows failed use the follwing command to find the correct path and use it in step 6 instead of “/home/{YOUR_USERNAME}/.local/bin/linux-discord-rich-presence”:

which linux-discord-rich-presence