Files
UmbraEdit/setup/appimage_launcher.sh
B.D. Murphy 70d74e675f chore: rename project from novelWriter to UmbraEdit
- Rename project name and package: novelWriter -> UmbraEdit, novelwriter -> umbraedit
- Rename entry script novelWriter.py -> UmbraEdit.py
- Rename package directory novelwriter/ -> umbraedit/
- Rename i18n translation sources nw_*.ts -> ue_*.ts
- Rename packaging files (appdata, project xml template)
- Update all imports, references, docs, workflows, tests and build config
- Update pyproject.toml project name, GUI script and URLs
- Preserve full upstream git history; origin repointed below
2026-11-05 07:08:12 -08:00

37 lines
827 B
Bash
Executable File

#!/bin/bash
if [ -z "$1" ]; then
echo "Please provide the path to the UmbraEdit.AppImage file as an argument"
exit 1
fi
if [ ! -e "$1" ]; then
echo "File not found"
exit 1
fi
IMGPATH="$(readlink -m "$1")"
echo "AppImage: $IMGPATH"
ICONPATH="$(dirname "$IMGPATH")/UmbraEdit.png"
if [ ! -e "$ICONPATH" ]; then
echo "Downloading icon"
wget https://raw.githubusercontent.com/saga-soft/UmbraEdit/main/setup/data/hicolor/256x256/apps/umbraedit.png -O "$ICONPATH"
fi
cat > $HOME/.local/share/applications/UmbraEdit.desktop <<EOF
[Desktop Entry]
Type=Application
Name=UmbraEdit
Comment=A plain text editor for planning and writing novels
Exec=${IMGPATH} %f
Icon=${ICONPATH}
Categories=Qt;Office;WordProcessor;
Terminal=false
EOF
update-desktop-database ~/.local/share/applications
echo "Desktop launcher generated"