Hi, today I started Discord after some time (about a week or two).
It started and began downloading updates.
At the third update it crashed with an error.
Now every time I try to start it, it tries to download again that update and crashes.
Here is the error:
I don’t use the package from Packman repo so I’m not sure about this but I can tell you how I go about it.
I download the tar.gz from Discord’s website and extract it to /usr/share/Discord.
I use the following script to extract and install. It only works if the tar.gz is in a folder named ~/Downloads/Discord-Update. You could change that how you like.
#!/bin/bash
cd ~/Downloads/Discord-Update/ || exit
shopt -s nullglob
files=(*discord-*.tar.gz)
if [ ${#files[@]} -eq 0 ]; then
echo "No Discord update found."
exit 1
fi
# Add an "Exit" option to the selection menu
echo "Select a file to extract (or choose 'Exit' to quit):"
select file in "${files[@]}" "Exit"; do
if [[ "$file" == "Exit" ]]; then
echo "Exiting..."
exit 0
elif [ -n "$file" ]; then
echo "Extracting: $file"
tar -xvf "$file" --one-top-level="${file%.tar.gz}"
# Copy the extracted 'Discord' folder to /usr/share/Discord
extracted_folder="${file%.tar.gz}/Discord"
if [ -d "$extracted_folder" ]; then
echo "Removing old Discord folder from /usr/share/Discord..."
sudo rm -r /usr/share/Discord
echo "Copying new Discord folder to /usr/share/Discord..."
sudo cp -r "$extracted_folder" /usr/share/Discord
echo "Update complete."
else
echo "Discord folder not found in the extracted files."
fi
break
else
echo "Invalid selection."
fi
done
The downside with this to me is you will need to repeat this every so often as sometimes when you open discord for an update it will direct you to download the tar.gz to do this again.
Is there a specific reason you use discord from the packman repo?
Thank you @deebido for your reply.
To answer your question, using packages from the repos is easier because you get automatic updates and also they’re guaranteed (or they should be guaranteed) to integrate better in the OS.
Among the two possibilities (the Packman repo and the official openSUSE non-oss repo) I chose Packman because they’re updating the package more often (if you look at the packages listed in my previous post you’ll see Packman has 0.0.93 while repo-non-oss has 0.0.90).
That said, your solution is nice and does not bring too many complications, I may try it.
After a couple days Discord client is now able to complete the update.
Maybe it was really a defective update and they pulled it.
Anyhow, problem solved.
Thank you to those who tried to offer their help!