ByzantineFailure / BPM-for-Discord

BPM for Discord's Desktop App. Includes one-click installers, update notifications, and custom script support.
GNU Affero General Public License v3.0
17 stars 8 forks source link

Adding additional Debian-Linux Update Instructions #95

Open CrystalSplitter opened 6 years ago

CrystalSplitter commented 6 years ago

When Discord has a large update on Debian distros (I can't say for other Linux versions), BPM is removed, as expected. However, adding BPM back in will cause Discord to believe that it's using the old version, and will ask you to reinstall (thus removing BPM). You'll get stuck in a loop of Discord forever detecting its files were messed with, and then asking for a reinstall.

There is, however, a workaround. Thoroughly removing the application files, as well as the config files, will prevent this from happening if you use the debian package provided. Of course, using the tarball will give different results, and wouldn't require deleting directories owned by the superuser (or require purging the package, for that matter).

I would like the above information (and the following shell commands) to be stored somewhere in the wiki so that us Debian plebs don't have to keep figuring it all out again.

# Purge the previously installed debian package of discord.
# using `sudo apt-get purge discord` is also acceptable.
# You will need superuser perms to modify the shared packages.
sudo aptitude purge discord

# Delete the discord application files. Ensure this is the correct directory before running.
sudo rm -r /usr/share/discord/

# Delete the local config folder.
rm -r $HOME/.config/discord/

# Reinstall discord.
sudo dpkg -i [PATH-TO-DOWNLOAD-DIRECTORY]/discord-0.0.3.deb

# Run discord here.
discord

#
# Make sure everything is working, then close down the discord instance that is
# spawned here. We need to do this to construct the $HOME/.config/discord
# directory again, but with the new version of discord.
#

# Install BPM-for-discord, the install directory will be /usr/share/discord.
sudo [BPM-UNPACKED-DIRECTORY]/discord/install_linux.sh

# Run discord with BPM now installed.
discord
ByzantineFailure commented 6 years ago

I am absolutely down with adding better instructions. Will take a glance at this tomorrow afternoon!

On Dec 12, 2017 20:56, "Crystal (JRA)" notifications@github.com wrote:

When Discord has a large update on Debian distros (I can't say for other Linux versions), BPM is removed, as expected. However, adding BPM back in will cause Discord to believe that it's using the old version, and will ask you to reinstall (thus removing BPM). You'll get stuck in a loop of Discord forever detecting its files were messed with, and then asking for a reinstall.

There is, however, a workaround. Thoroughly removing the application files, as well as the config files, will prevent this from happening if you use the debian package provided. Of course, using the tarball will give different results, and wouldn't require deleting directories owned by the superuser (or require purging the package, for that matter).

I would like the above information (and the following shell commands) to be stored somewhere in the wiki so that us Debian plebs don't have to keep figuring it all out again.

Purge the previously installed debian package of discord.# using sudo apt-get purge discord is also acceptable.# You will need superuser perms to modify the shared packages.

sudo aptitude purge discord

Delete the discord application files. Ensure this is the correct directory before running.

sudo rm -r /usr/share/discord/

Delete the local config folder.

rm -r $HOME/.config/discord/

Reinstall discord.

sudo dpkg -i discord-0.0.3.deb

Run discord here.

discord

Make sure everything is working, then close down the discord instance that is# spawned here. We need to do this to construct the $HOME/.config/discord# directory again, but with the new version of discord.

Install BPM-for-discord, the install directory will be /usr/share/discord.

sudo [BPM-UNPACKED-DIRECTORY]/discord/install_linux.sh

Run discord with BPM now installed.

discord

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ByzantineFailure/BPM-for-Discord/issues/95, or mute the thread https://github.com/notifications/unsubscribe-auth/AEwr6UCKcpaMfL9ywIagIuNcUjT8EvPtks5s_1j9gaJpZM4RAAu4 .