mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
After further consideration, doing this in-app makes more sense. This
way, we'd never be able to update the desktop file automatically (e.g.,
to add a new MimeType), and removing the template zotero.desktop file
would break all existing installs using our symlink instructions.
In-app, we can update the existing desktop file on restart after an
upgrade, and we can remove the existing symlink.
This reverts commit 0ac57f8262.
13 lines
350 B
Bash
Executable file
13 lines
350 B
Bash
Executable file
#!/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
|
|
sed -i -e "s@^Icon=.*@Icon=$APPDIR/icons/icon128.png@" "$APPDIR"/zotero.desktop
|
|
else
|
|
echo "$APPDIR"/zotero.desktop is not writable
|
|
exit 1
|
|
fi
|