if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
( cd usr/bin ; rm -rf discord )
( cd usr/bin ; ln -sf ../share/discord/Discord discord )
( cd usr/share/applications ; rm -rf discord.desktop )
( cd usr/share/applications ; ln -sf ../discord/discord.desktop discord.desktop )
( cd usr/share/pixmaps ; rm -rf discord.png )
( cd usr/share/pixmaps ; ln -sf ../discord/discord.png discord.png )
