Discord
Discord はプロプライエタリで、クロスプラットフォームの、オールインワンなボイス・テキストチャットアプリケーションです。多くのオープンソースコミュニティが公式の Discord サーバを持っています。Discord は、Web ブラウザで使うこともできますし、(Electron で作成されている) デスクトップアプリケーションから使うこともできます。
目次
- 1 インストール
- 2 ヒントとテクニック
- 3 トラブルシューティング
- 3.1 Lagging when scrolling through your guilds
- 3.2 Crackling during voice calls
- 3.3 Screen sharing on Wayland
- 3.4 Enabling rich presence on Flatpak
- 3.5 Discord becomes unresponsive during long calls
- 3.6 Discord freezes after getting pinged or messaged
- 3.7 Notification sounds do not work with PipeWire
- 3.8 Emojis are not rendered correctly
- 3.9 Clicking link does not open the web browser
- 3.10 Sync with computer feature not working
- 3.11 Blurry Discord icon in KDE Plasma system tray
- 3.12 Discord spams systemd journal
インストール
以下のパッケージのうちどれかを使って Discord のデスクトップアプリケーションをインストールできます:
グラフィカルなクライアント
公式アプリケーション
- 安定版: discord
- テスト版: discord-ptbAUR
- Nightly 版: discord-canary
システムの electron を使用する公式クライアント
セキュリティ向上と潜在的なパフォーマンス向上のために、システムで提供される electron を使用する公式クライアント:
- 安定版: discord_arch_electronAUR
- Nightly 版: discord-canary-electron-binAUR
サードパーティのクライアント
- Abaddon — C++/gtkmm で作成された代替の Discord クライアント。
- Fast-Discord — C++ と Qt で作成された新しい Discord クライアント。
- gtkcord4 — Go で記述された GTK4 Discord クライアント。
- Ripcord — Slack と Discord のようなグループ中心型サービスのための、Qt toolkit 上に構築された、軽量のプロプライエタリなデスクトップチャットクライアント。
- WebCord — Discord ウェブクライアントのラッパ。プライバシーを向上し、Wayland 上でのスクリーン共有を可能にします。
コマンドラインのクライアント
CLI ベースのサードパーティ製クライアントが AUR 上 に多数存在しています (GitHub 上にもパッケージングされていないものが存在します)。しかし、それらのうち殆どは非推奨となっているか壊れています。discordo はメンテナンスされており、さらに AUR 上に discordo-gitAUR としてパッケージングされています。
チャットクライアントプラグイン
- purple-discord-gitAUR: Pidgin などの、libpurple ベースのグラフィカル/ターミナルのメッセンジャーソフトウェア上で Discord が使えるようになります。
- bitlbee-discord-gitAUR: Bitlbee を通して Discord が使えるようになります。
カスタム CSS & プラグイン
- BetterDiscord — CSS とプラグインを使えるように Discord を改造するプロジェクトです。
- Discocss — Discord クライアントにカスタムの CSS をインジェクトできるシンプルなスクリプトです。discord-ptbAUR と discord-canary のバージョンに CSS をインジェクトするには、
discord
フォルダ内の記述をすべて使用するバージョンに置き換えてください。
- Replugged — Powercord のフォーク。軽量の Discord クライアント MOD。シンプリシティとパフォーマンスにフォーカスを置いています。
オーバーレイ
Linux クライントでは、Discord はゲーム内オーバーレイをサポートしていません。discover-overlayAUR は、オープンソースの GTK アプリケーションで、そのような機能を提供します。Discover は X11 や wlroots 環境で機能します。
ヒントとテクニック
GNOME top bar icon
If you would like to have the icon on the top bar of GNOME, install the AppIndicator and KStatusNotifierItem Support extension and libappindicator-gtk3.
Discord asks for an update not yet available in the repository
Discord will refuse to launch if there is an update available. If the updated version is not yet available in the official repos, you can build and install the updated package using the Arch Build System.
To disable the update check, add the following to ~/.config/discord/settings.json
:
"SKIP_HOST_UPDATE": true
Or you can cheat. Check for discord's path:
file $(which discord)
and cd to where the symbolic link points. In this directory (probably /opt/discord/
) edit the file resources/build_info.json
that should look like:
{ "releaseChannel": "stable", "version": "0.0.xx" }
You can "upgrade" the version, and trick the launcher. All is reset in a future update.
Start Discord minimized
Discord can be started minimized through the --start-minimized
argument.
Microphone noise suppression using pipewire (Krisp replacement)
Although Krisp is not available in Linux, you can achieve similar noise reduction level with PipeWire#Noise suppression for voice.
Getting Krisp
With binary from official website
Krisp is not yet included in the discord repo package but may be obtained by downloading the .zip-archive from the official discord website. Extract the archive and copy the Discord
binary into the /opt/discord
directory. After restarting Discord the option to enable Krisp will be available.
With flatpak
Install Flatpak , then install Discord from Flathub:
flatpak install flathub com.discordapp.Discord
Screen sharing with audio
Screen sharing with audio is not supported on Linux. Alternatives include:
- For PulseAudio, following PulseAudio/Examples#Remapping select audio sources to obtain a Monitor of source for the program to share, which can be used as input for another instance of Discord running in a browser.
Enabling Developer Tools
After a recent update, devtools were disabled by default on Discord for safety reasons. To re-enable them, add this to ~/.config/discord/settings.json
:
"DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true
Enabling Text-to-Speech
By default, Text-to-Speech is disabled in the Discord client. However, it can be enabled using the --enable-speech-dispatcher
flag. This utilizes the speech-dispatcher daemon to output the speech.
トラブルシューティング
Lagging when scrolling through your guilds
If you experience lags and stutters while scrolling through your guilds please ensure that your hardware acceleration is working correctly. You can do this by opening chrome://gpu
in a Chromium based browser. If it is not working please check the chapter on Hardware video acceleration and try running Discord with some additional options:
$ discord --ignore-gpu-blocklist --disable-features=UseOzonePlatform --enable-features=VaapiVideoDecoder --use-gl=desktop --enable-gpu-rasterization --enable-zero-copy
Crackling during voice calls
If you experience crackling sounds when in voice chat, try the steps outlined in PulseAudio/Troubleshooting#Glitches, skips or crackling.
Screen sharing on Wayland
As of version 0.0.17, the Screen Share feature does not work on Wayland, even when enabling Ozone for Wayland using /usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
. See this Reddit post and the Discord bug report.
As a work around webcordAUR can be used which fully supports screensharing on Wayland, however lacks features like rich presence as it bundles the web version of Discord. The web version itself may also be used.
Enabling rich presence on Flatpak
When using the Flatpak version of Discord, Rich Presence will not work out of the box. To make it work, it is necessary to create a symlink from $XDG_RUNTIME_DIR/discord-ipc-0
to $XDG_RUNTIME_DIR/app/com.discordapp.Discord/discord-ipc-0
. To create the symlink for the current user session, run:
$ ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-0
To automatically create the symlink, systemd-tmpfiles can be used by adding the following line to a file with the .conf extension in ~/.config/user-tmpfiles.d/
:
L %t/discord-ipc-0 - - - - app/com.discordapp.Discord/discord-ipc-0
Discord becomes unresponsive during long calls
If Discord becomes unresponsive during long calls, try the --no-sandbox
argument. You can also add the following to your .bashrc, or alias file for your shell:
alias discord='discord --no-sandbox'
Discord freezes after getting pinged or messaged
If a message that would trigger a notification (pings, DMs, servers with notifications on, etc) causes the client to freeze, the client is failing to find a notification server. To fix it without installing a notifications server, disable Enable Desktop Notifications in the Notifications options.
Notification sounds do not work with PipeWire
See PipeWire#No notification sounds from Discord.
Emojis are not rendered correctly
If you encounter rendering issues regarding emojis (rendering as rectangles for example), discord-canary-electron-binAUR has the appropriate fonts as optional dependencies. You should install ttf-symbolaAUR, noto-fonts-cjk, and noto-fonts-emoji.
Clicking link does not open the web browser
If clicking a link does not open a tab in your default web browser, you should install the xdg-utils optional dependency.
Sync with computer feature not working
Discord is parsing the following file to find which theme to apply:
$HOME/.config/gtk-3.0/settings.ini
and it is looking for these specific lines:
[Settings] gtk-theme-name=Adwaita-dark
If you change the theme from Adwaita-dark to Adwaita, then Discord will automatically change to light version and vice-versa.
Note that Discord only supports a few popular themes, so if it does not work for your particular theme (in this example with Materia theme), a "dirty" fix would be to put the following in your settings.ini file:
[Settings] gtk-theme-name=Adwaita-dark gtk-theme-name=Materia-dark
The definition order is important because GTK will use the second variable definition so in this case Materia-dark but Discord will still successfully detect that you are using a dark theme by providing Adwaita-dark in the first variable definition of the GTK theme.
Blurry Discord icon in KDE Plasma system tray
You can attempt to fix this issue by installing libappindicator-gtk3 to replace libappindicator-gtk2, which is known to cause this issue.
Discord spams systemd journal
You may find that Discord creates a lot of messages in your journal in a format like:
(device_info_linux.cc:45): NumberOfDevices
To disable the logging that causes this pollution: go to User Settings, select "Voice & Video", scroll to bottom of the screen and disable "Debug Logging".