flathub / com.discordapp.Discord

https://flathub.org/apps/details/com.discordapp.Discord
130 stars 42 forks source link

Discord

Discord is a free all-in-one messaging, voice and video client that's available on your computer and phone.

This repo hosts the flatpak wrapper for Discord, available at Flathub.

flatpak install flathub com.discordapp.Discord
flatpak run com.discordapp.Discord

Reporting bugs

If you're experiencing a problem exclusive to the Flatpak version of Discord, i.e. it doesn't happen when running the official deb or tar.gz packages unsandboxed, feel free to open an issue about it here.

Otherwise, please use the official bug report form instead, as it increases the chances of a bug getting fixed.

Differences in flatpak version

The flatpak version runs in a sandbox to provide better safety and privacy for users.

However, this sandboxing prevents the following features from working:

Wayland

This package enables the flags to run on Wayland, however it is opt-in. To opt-in run:

flatpak override --user --socket=wayland com.discordapp.Discord

To opt-out do the same with --nosocket=wayland.

Persistent launch options

To make Discord's launch options persistent, add them to ~/.var/app/com.discordapp.Discord/config/discord-flags.conf (one option per line):

# This line will be ignored
--enable-features=WaylandWindowDecorations

# https://chromium.googlesource.com/chromium/src/+/master/docs/linux/password_storage.md
--password-store=basic

Opening Discord automatically at system startup

The Discord app has a built-in option for that, but it doesn't work on Flatpak mostly because of sandbox restrictions.

But we can still do that manually, with these two commands:

mkdir -p ~/.config/autostart
ln -s "$(flatpak info -l com.discordapp.Discord//stable | sed 's#/app/.*#/exports/share/applications/com.discordapp.Discord.desktop#')" ~/.config/autostart

To undo that, run:

rm ~/.config/autostart/com.discordapp.Discord.desktop

Legal

The Discord app itself is proprietary (closed source).