summarylogtreecommitdiffstats
path: root/gesturecontrol.install
blob: cb5265c947f8011dca9db4cd76e989743291d849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
post_install() {
    echo ""
    echo "  Gesture Control installed."
    echo ""
    echo "  The tray icon will appear on your next login and run first-time setup"
    echo "  automatically (creates a Python venv and downloads the MediaPipe model)."
    echo ""
    echo "  To start it now without logging out:"
    echo ""
    echo "    gesturecontrol-tray &"
    echo ""
}

post_upgrade() {
    echo ""
    echo "  Gesture Control upgraded."
    echo ""
    echo "  If this update added new pip dependencies, re-run setup:"
    echo ""
    echo "    gesturecontrol-setup"
    echo ""
    echo "  Then restart any running services:"
    echo ""
    echo "    systemctl --user restart gestureControl.service gestureControl-actions.service"
    echo ""
}

pre_remove() {
    systemctl --user stop    gestureControl.service gestureControl-actions.service 2>/dev/null || true
    systemctl --user disable gestureControl.service gestureControl-actions.service 2>/dev/null || true
}