Wrap discord and silence std output, otherwise it crashes when run
outside of terminal
This commit is contained in:
parent
7b313254e2
commit
ae8dc91c7f
1 changed files with 14 additions and 0 deletions
|
|
@ -20,6 +20,13 @@ let
|
|||
sha256 = "sha256-mpTrvgYiMfamMebtytY0bLouSbaP3qEqP8pgCFl+xPQ=";
|
||||
};
|
||||
|
||||
discord_wrapped = pkgs.writeShellScriptBin "discord" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
# Execute the original Discord binary, redirecting stdout and stderr to /dev/null
|
||||
# "$@" passes along any arguments (like URLs for opening links in Discord)
|
||||
exec "${pkgs.discord}/bin/discord" "$@" >/dev/null 2>&1
|
||||
'';
|
||||
|
||||
bananaCursorBlue = pkgs.stdenv.mkDerivation {
|
||||
pname = "banana-cursor-blue";
|
||||
version = "2.0.0";
|
||||
|
|
@ -142,6 +149,9 @@ in
|
|||
slurp
|
||||
pavucontrol
|
||||
playerctl
|
||||
discord_wrapped
|
||||
spotify
|
||||
mako
|
||||
];
|
||||
|
||||
file = {
|
||||
|
|
@ -154,6 +164,10 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
mako.enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
firefox = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue