User Tools

Site Tools


public:it:discord

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:it:discord [2021/09/27 17:46] philpublic:it:discord [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== 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 ==== 
-<code> 
-#!/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 
- 
-</code> 
-==== 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'%%'' 
- 
-<code>Exec=/usr/share/discord/Discord --force-device-scale-factor=2</code> 
- 
- 
-==== 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: 
-<code> 
-  "MIN_WIDTH": 0,  
-  "MIN_HEIGHT": 0,  
-</code> 
-Restart discord 
public/it/discord.1632782771.txt.gz · Last modified: 2021/09/27 17:46 by phil