From 2b6efc9a5dbfacbba08074ed802c8aa86c9a1318 Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Fri, 1 Dec 2023 12:15:51 -0600 Subject: [PATCH] Just realized there was an icon dir already existing in ($HOME/.local/share/icons). Removed my "custom" one and will use it instead. --- install-discord-linux.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/install-discord-linux.sh b/install-discord-linux.sh index 255fa0b..43870bc 100755 --- a/install-discord-linux.sh +++ b/install-discord-linux.sh @@ -11,7 +11,7 @@ EXISTING_INSTALL=$INSTALL_DIR/Discord BUILD_FILE=$EXISTING_INSTALL/resources/build_info.json DESKTOP_FILE=$EXISTING_INSTALL/discord.desktop PACKAGE_DOWNLOAD_URL_BASE='https://dl.discordapp.net/apps/linux/{VERSION}/discord-{VERSION}.tar.gz' -ICON_DIR=~/.icons +ICON_DIR=~/.local/share/icons DESKTOP_FILE_INSTALLED=0 LOCAL_APPLICATION_DIR=~/.local/share/applications [[ -f /usr/share/applications/discord.desktop ]] && DESKTOP_FILE_INSTALLED=1 @@ -108,17 +108,6 @@ function do_install() { update_desktop_file - ## If your icon dir (configured above) exists in the env variable - if [[ "$XDG_DATA_DIRS" != *$ICON_DIR* ]]; then - export XDG_DATA_DIRS=$XDG_DATA_DIRS:$ICON_DIR - if [[ $SHELL == *bash ]]; then - echo 'export XDG_DATA_DIRS=$XDG_DATA_DIRS':$ICON_DIR > ~/.bashrc - else - echo 'export XDG_DATA_DIRS=$XDG_DATA_DIRS':$ICON_DIR > ~/.profile - - fi - fi - [[ ! -d $ICON_DIR ]] && mkdir -p $ICON_DIR cp $EXISTING_INSTALL/discord.png $ICON_DIR/ sudo desktop-file-isntall $DESKTOP_FILE