Discord: Difference between revisions
→Troubleshooting: New section on fixing Discord RPC |
m style fixes |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 6: | Line 6: | ||
| website = https://discord.com/ | | website = https://discord.com/ | ||
| platform = Cross-platform (Linux, macOS, Windows, Web) | | platform = Cross-platform (Linux, macOS, Windows, Web) | ||
| github = | | github = discord | ||
}} | }} | ||
| Line 15: | Line 15: | ||
=== Official Clients === | === Official Clients === | ||
Nixpkgs provides all three of Discord's release channels, accessible as <code>pkgs.discord</code>, <code>pkgs.discord-ptb</code>, and <code>pkgs.discord-canary</code> respectively. Add any of the previous derivations to your package's configuration. For [[NixOS]] this will be in <code>environment.systemPackages</code> or <code>users.users.<name>.packages</code>. | Nixpkgs provides all three of Discord's release channels, accessible as <code>pkgs.discord</code>, <code>pkgs.discord-ptb</code>, and <code>pkgs.discord-canary</code> respectively. Add any of the previous derivations to your package's configuration. For [[NixOS]] this will be in <code>environment.systemPackages</code> or <code>users.users.<name>.packages</code>. | ||
{{file|configuration.nix|nix|3= | |||
{ config, lib, pkgs, ... }: { | { config, lib, pkgs, ... }: { | ||
# This will install Discord PTB for all users of the system | # This will install Discord PTB for all users of the system | ||
| Line 28: | Line 28: | ||
]; | ]; | ||
} | } | ||
}} | |||
=== Unofficial Clients === | === Unofficial Clients === | ||
| Line 43: | Line 43: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== BetterDiscord<ref>https:// | ==== BetterDiscord<ref>https://github.com/BetterDiscord/BetterDiscord</ref> ==== | ||
Enhances Discord desktop app with new features. Nixpkgs provides the installer via <code>pkgs.betterdiscordctl</code>. This can be added to your configuration, though users may prefer to instead run it one-off via the [[Nix]] cli.<syntaxhighlight lang= | Enhances Discord desktop app with new features. Nixpkgs provides the installer via <code>pkgs.betterdiscordctl</code>. This can be added to your configuration, though users may prefer to instead run it one-off via the [[Nix]] cli.<syntaxhighlight lang=console> | ||
$ nix-shell -p betterdiscordctl --command 'betterdiscordctl install' # nix-legacy | $ nix-shell -p betterdiscordctl --command 'betterdiscordctl install' # nix-legacy | ||
$ nix run nixpkgs#betterdiscordctl -- install # nix3 | $ nix run nixpkgs#betterdiscordctl -- install # nix3 | ||
| Line 64: | Line 64: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Vencord<ref>https:// | ==== Vencord<ref>https://github.com/Vendicated/Vencord</ref> ==== | ||
The cutest Discord client mod. The standalone Vencord client can be installed by overriding the official Discord package via <code>withVencord = true</code>. | The cutest Discord client mod. The standalone Vencord client can be installed by overriding the official Discord package via <code>withVencord = true</code>. | ||
{{File|3={ config, lib, pkgs, ... }: { | {{File|3={ config, lib, pkgs, ... }: { | ||
| Line 124: | Line 124: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Crash on start-up === | |||
Occasionally, Discord's code can become corrupted, causing it to crash on start-up. You can force it to re-download the latest version by deleting the <code>~/.config/discord/1.0.138</code>directory, where <code>1.0.138</code> is replaced with Discord's current version number (the second line of output when running <code>discord</code> from a terminal). | |||
=== "Must be your lucky day" popup === | === "Must be your lucky day" popup === | ||
| Line 173: | Line 176: | ||
After adding this to your Nix configuration and rebuilding, make sure Discord is completely closed, and then run: | After adding this to your Nix configuration and rebuilding, make sure Discord is completely closed, and then run: | ||
< | <syntaxhighlight lang=console> | ||
$ krisp-patcher ~/.config/discord/0.0.76/modules/discord_krisp/discord_krisp.node | |||
</syntaxhighlight> | |||
Once you restart Discord and join a VC, you should see a sound wave icon to the left of the hangup icon. | Once you restart Discord and join a VC, you should see a sound wave icon to the left of the hangup icon. | ||
| Line 191: | Line 196: | ||
<syntaxhighlight lang="nixos"> | <syntaxhighlight lang="nixos"> | ||
{pkgs, ...}:{ | {pkgs, ...}:{ | ||
enviroment.systemPackages = with pkgs [ | enviroment.systemPackages = with pkgs; [ | ||
arrpc | arrpc | ||
]; | ]; | ||
systemd.packages = with pkgs; [ arrpc ]; | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 207: | Line 207: | ||
<syntaxhighlight lang="nixos"> | <syntaxhighlight lang="nixos"> | ||
{pkgs, ...}:{ | {pkgs, ...}:{ | ||
services.arrpc = { | |||
enable = true; | |||
package = pkgs.arrpc; # Default | |||
systemdTarget = "graphical-session.target"; # Default | |||
}; | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||