Discord EPIPE Error After Lock Screen

Wanted to get this saved in the Zorin Forum to help the next person.

If you are getting EPIPE Java errors and a crash with Discord when coming back from the lock screen or sleep - you can send the shortcut to /dev/null like the below. This is like just starting Discord from terminal first (which also works btw). This is just an edit of my Desktop shortcut but you can also change the actual system shortcut if you'd like.

[Desktop Entry]
Name=Discord
StartupWMClass=discord
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
GenericName=Internet Messenger
Exec=sh -c "/usr/bin/discord > /dev/null 2>&1"
#Exec=/usr/bin/discord --url -- %u
Icon=discord
Type=Application
Categories=Network;InstantMessaging;
MimeType=x-scheme-handler/discord;
Path=/usr/bin

2 Likes