Skip to content

Instantly share code, notes, and snippets.

@lnoering
Created July 19, 2018 21:55
Show Gist options
  • Save lnoering/e914013e2b8699327ef44b62862e9ac1 to your computer and use it in GitHub Desktop.
Save lnoering/e914013e2b8699327ef44b62862e9ac1 to your computer and use it in GitHub Desktop.
Install discord (for the .tar.gz)
#!/usr/bin/env bash
cd ~/
mkdir -p ~/.local/bin
wget "https://discordapp.com/api/download/canary?platform=linux&format=tar.gz" -O discord.tar.gz
tar -xvf discord.tar.gz -C ~/.local/bin
sudo ln -s ~/.local/bin/DiscordCanary/discord.png /usr/share/icons/discord.png
sudo ln -s ~/.local/bin/DiscordCanary/DiscordCanary /usr/bin
wget https://gist.githubusercontent.com/AdrianKoshka/a12ca0bfe2f334a9f208aff72f8738c3/raw/9d606ad7ce7cc1dd23f6a99993e2396540538a02/discord.desktop -O discord.desktop
mkdir -p ~/.local/share/applications/
mv ~/discord.desktop ~/.local/share/applications/
sudo ln -s ~/.local/share/applications/discord.desktop /usr/share/applications/discord.desktop
@NickTheOnlyNeko
Copy link

if anyone wants to use a similar bash script i've developed a similar one, it's a bit iffy and has a few work arounds (Because i didn't want to use sudo) but other than that i think it does pretty much the same thing as this script here
https://gitlab.com/NickTheNeko/dd

@huynk-navalible
Copy link

@Raouferman

It's old, probably the format of discord.desktop need be change.

I can't test this because I'm not using Linux anymore. If you know more things from linux you can create or get other "application" .desktop and change to see if works.

Good luck, and let me know if you have success.

i think the exec line isnt set to the right discord location (the Discord file)

@NickTheOnlyNeko
Copy link

@Raouferman
It's old, probably the format of discord.desktop need be change.
I can't test this because I'm not using Linux anymore. If you know more things from linux you can create or get other "application" .desktop and change to see if works.
Good luck, and let me know if you have success.

i think the exec line isnt set to the right discord location (the Discord file)

honestly i wonder why people aren't trying my version out https://gitlab.com/NickTheNeko/dd
it basically does what this script does but with more functions/options to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment