2023-04-23 07:57:55 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
#
|
|
|
|
# Run this to update the launcher file with the current path to the application icon
|
|
|
|
#
|
|
|
|
|
|
|
|
APPDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
if [ -w "$APPDIR"/zotero.desktop ]; then
|
2024-01-22 09:40:52 +00:00
|
|
|
sed -i -e "s@^Icon=.*@Icon=$APPDIR/icons/icon128.png@" "$APPDIR"/zotero.desktop
|
2023-04-23 07:57:55 +00:00
|
|
|
else
|
|
|
|
echo "$APPDIR"/zotero.desktop is not writable
|
|
|
|
exit 1
|
|
|
|
fi
|