From 8048e4a2494ddca0eece3dca55b214c5acd3e8dd Mon Sep 17 00:00:00 2001 From: Bas van den Wollenberg Date: Sun, 26 May 2024 02:00:17 +0200 Subject: [PATCH] Switch to the official Discord package --- bin/bin/discord | 21 ------------------- .../.local/share/applications/discord.desktop | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100755 bin/bin/discord diff --git a/bin/bin/discord b/bin/bin/discord deleted file mode 100755 index c8c5b62..0000000 --- a/bin/bin/discord +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/bash - -set -euo pipefail - -name=discord -electron=electron26 -flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf" - -declare -a flags - -if [[ -f "${flags_file}" ]]; then - mapfile -t <"${flags_file}" -fi - -for line in "${MAPFILE[@]}"; do - if [[ ! "${line}" =~ ^[[:space:]]*#.* ]] && [[ -n "${line}" ]]; then - flags+=("${line}") - fi -done - -exec /usr/bin/${electron} /usr/share/${name}/resources/app.asar "${flags[@]}" "$@" diff --git a/discord/.local/share/applications/discord.desktop b/discord/.local/share/applications/discord.desktop index a88512c..0044042 100644 --- a/discord/.local/share/applications/discord.desktop +++ b/discord/.local/share/applications/discord.desktop @@ -3,7 +3,7 @@ Name=Discord StartupWMClass=discord Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone. GenericName=Internet Messenger -Exec=/home/bas/bin/discord +Exec=/usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland Icon=discord Type=Application Categories=Network;InstantMessaging; -- 2.51.2