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:
https://www.youtube.com/watch?v=5m0YfIiypwA

  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

[Unit]
Description=Discord Rich Presence Service

[Service]
Type=simple
[Unit]
Description=Discord Rich Presence Service

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

[Install]
WantedBy=default.target

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
             └─10-timeout-abort.conf
     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

Cheers!

5 Likes