Created
August 23, 2025 07:05
-
-
Save makeevrserg/595f93c7c13e126098a8a6c4d030c424 to your computer and use it in GitHub Desktop.
Install discord on Arch KDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # Temp download location | |
| cd /tmp | |
| # Download latest Discord tar.gz | |
| wget -O discord.tar.gz "https://discord.com/api/download?platform=linux&format=tar.gz" | |
| # Extract | |
| tar -xvzf discord.tar.gz | |
| # Install to /opt | |
| sudo rm -rf /opt/discord | |
| sudo mv Discord /opt/discord | |
| # Symlink binary | |
| sudo ln -sf /opt/discord/Discord /usr/bin/discord | |
| # Install desktop entry | |
| sudo tee /usr/share/applications/discord.desktop > /dev/null <<EOF | |
| [Desktop Entry] | |
| Name=Discord | |
| Comment=Chat for Communities and Friends | |
| Exec=/usr/bin/discord | |
| Icon=/opt/discord/discord.png | |
| Terminal=false | |
| Type=Application | |
| Categories=Network;InstantMessaging; | |
| EOF | |
| # Update desktop database (helps KDE pick it up immediately) | |
| sudo update-desktop-database /usr/share/applications |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment