This is the flatpak for ArmCord. Due to sandbox limitations, it might not function as expected, so some ways to get it working are detailed below:
This flatpak has the appropriate permissions for tray icons out of the box; however, GNOME does not provide native tray icons support out of the box, due to the current specification being horribly outdated and not being sandbox-friendly.
The extension that should be used to obtain tray icons is appindicator-support. Enable this extension and disable any other alternatives and tray icons will function as expected.
A solution that works short-term is to run ln -sf $XDG_RUNTIME_DIR/{.flatpak/xyz.armcord.ArmCord/xdg-run,}/discord-ipc-0
.
For something longer lasting, run the following:
mkdir -p ~/.config/user-tmpfiles.d
echo 'L %t/discord-ipc-0 - - - - .flatpak/xyz.armcord.ArmCord/xdg-run/discord-ipc-0' > ~/.config/user-tmpfiles.d/discord-rpc.conf
systemctl --user enable --now systemd-tmpfiles-setup.service
Now, native applications will be able to use Rich Presence on every system start.
Flatpak applications need certain changes inside of the flatpak environment to connect properly:
- Permission to access
$XDG_RUNTIME_DIR/.flatpak/xyz.armcord.ArmCord/
- A symlink at
$XDG_RUNTIME_DIR/discord-ipc-0
pointing to$XDG_RUNTIME_DIR/.flatpak/xyz.armcord.ArmCord/xdg-run/discord-ipc-0
Suggested changes to accomplish these needs :
- Add
--filesystem=xdg-run/.flatpak/com.xyz.armcord.ArmCord:create
and--filesystem=xdg-run/discord-ipc-*
to the global Flatpak permissions - Restart