···11[Unit]
22-Description=Watch ~/AppImages for appherder sync
22+Description=Watch AppImages for appherder sync
3344[Path]
55-# PathChanged watches the directory and everything under it via inotify. If
66-# ~/AppImages does not yet exist, systemd watches its parent and picks the
77-# directory up when it is created.
88-PathChanged=%h/AppImages
55+PathChanged={{APPIMAGES_DIR}}
96Unit=appherder-sync.service
107118[Install]
···5656 a.progress = p
5757 return a
5858}
5959+6060+// AppImagesDir is the directory appherder manages as the source of truth.
6161+func (a App) AppImagesDir() string {
6262+ return a.appimagesDir
6363+}
6464+6565+// ServiceWritePaths returns the directories systemd services need writable for
6666+// sync and upgrade. Icons and saved versions live under AppImagesDir.
6767+func (a App) ServiceWritePaths() []string {
6868+ return []string{a.appimagesDir, a.applicationsDir, a.binDir}
6969+}