Just realized there was an icon dir already existing in ($HOME/.local/share/icons). Removed my "custom" one and will use it instead.
This commit is contained in:
parent
fc82020be3
commit
2b6efc9a5d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user