Desktop: GTK3 + matplotlib app tracking arbitrary events (button -> timestamp -> CSV), with per-event stats, trend charts, settings (rename/add events, relocate data file), and a reset-with-backup flow. Portable desktop launcher via a .desktop.in template + install script, no machine-specific paths baked in. Android: minimal Kivy v1 companion reading/writing the same CSV format, plus buildozer build tooling isolated in a venv and a local p4a recipe override for kivy (see CLAUDE.md for why). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
19 lines
799 B
Shell
19 lines
799 B
Shell
#!/usr/bin/env bash
|
|
# Generates event-tracker.desktop for wherever this repo is actually
|
|
# cloned (event-tracker.desktop.in is a template, not a working launcher
|
|
# — it has no machine-specific path baked in) and installs it. Re-run
|
|
# any time after moving the clone; safe to re-run otherwise.
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
DEST="$HOME/.local/share/applications/event-tracker.desktop"
|
|
|
|
mkdir -p "$(dirname "$DEST")"
|
|
sed \
|
|
-e "s#__EXEC_PATH__#$SCRIPT_DIR/event_tracker.py#" \
|
|
-e "s#__ICON_PATH__#$SCRIPT_DIR/event-tracker.png#" \
|
|
"$SCRIPT_DIR/event-tracker.desktop.in" > "$DEST"
|
|
chmod +x "$SCRIPT_DIR/event_tracker.py" "$DEST"
|
|
update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true
|
|
|
|
echo "Installed launcher: $DEST"
|