this post was submitted on 06 Nov 2023
550 points (94.8% liked)

linuxmemes

20899 readers
447 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 

Can't I go one week without having to uninstall and reinstall the damn deb file?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 11 months ago (7 children)

I used this every time (with sudo):

#!/bin/sh
[ "$USER" != root ] && { sudo "$0" && exit; }
latest_version=$(
  curl -sI 'https://discord.com/api/download?platform=linux&format=deb' \
  | grep '^location:' \
  | grep -m 1 -oP '\d[\d.]+\d' \
  | head -n 1
)
sed -i.bak 's/\(version.*\)[0-9]\+\.[0-9]\+\.[0-9]\+/\1'"$latest_version"'/' \
  '/usr/share/discord/resources/build_info.json'

Let's see how good the Flatpak version will be.

[–] [email protected] 13 points 11 months ago (4 children)

just fyi I moved Discord, GIMP, Obsidian, and OBS over to flatpak and my root partition jumped from 19GB to 23GB. I'm kinda sad about it tbh

[–] AlijahTheMediocre 6 points 11 months ago (1 children)

4GB ain't to cry over, you already saved so much not using Windows :p

[–] [email protected] 1 points 11 months ago

It's true lol. I had to install Docker for teaching on my old drive and that instantly maxed out my root partition even when I kept deleting intermediate builds and unused data. Now I have this fun paranoia for all apps :)

load more comments (2 replies)
load more comments (4 replies)