User Tools

Site Tools


Sidebar

Public
Internal
public:it:discord

This is an old revision of the document!


Discord

A few annoying things I've dealt with while using discord fixed. Ubuntu w/ gnome-shell

Download latest deb package and remove the postinst script

#!/bin/bash

# Use curl to grab the redirect URL.
# https://dl.discordapp.net/apps/linux/0.0.16/discord-0.0.16.deb
link=$(curl -Ls -o /dev/null -w %{url_effective} https://discord.com/api/download/stable?platform=linux&format=deb)

# Extract the version from the link URL
# 0.0.16
version=$(echo "$link" |  sed 's|^http.*discord\-\([0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\)\.deb$|\1|')

# Get the debian package
wget -c "$link"

# Extract debian package
dpkg-deb -R discord-${version}.deb discord-${version}

# Stop messing with my home directory
rm -f discord-${version}/DEBIAN/postinst

# build the package
dpkg -b discord-${version}

# removing temporary directory
rm -r ./discord-${version}


# upload it to aptly
# some command

Scale Factor fix

1. Scale factor: I set my desktop to 200% in gnome shell. Every once and a while discord will forget that it is supposed to be scaled up. Minimizing and maximizing fixes this but is also annoying.

To fix permanently you can add the following command line option to '/usr/share/applications/discord.desktop'

Exec=/usr/share/discord/Discord --force-device-scale-factor=2

Snap window

2. Snap window to left or right. It doesn't work with discord because it seems to want to be a certain size. While I can appreciate that, I don't care.

Add the following options to your discord ~/.config/discord/settings.json file:

  "MIN_WIDTH": 0, 
  "MIN_HEIGHT": 0, 

Restart discord

Tools

public/it/discord.1634260650.txt.gz ยท Last modified: 2021/10/14 20:17 by phil