Repository navigation
Commit 6698222
authored
feat(dfm): wire install.sh to the in-tree stoa-dfm fork (#68)
## Summary
The vendor/fork scaffolding for DFM landed in #66/#67 but nothing
actually consumed it: `install.sh` skipped DFM entirely, and
`setup/post-install.sh` still `git clone`d `VictorGSchneider/DFM` into
`~/.local/share/dfm-app` on every run, ignoring `scripts/stoa-dfm/`.
This PR makes the installers finally use the in-tree fork.
## What changed
- **`install.sh`** — installs DFM editable from `scripts/stoa-dfm/` via
`pipx` (preferred, PEP 668 friendly) with a user-local venv fallback.
"Editable" preserves the symlink-style semantics the rest of the repo
relies on: `git pull` on StoaLinux propagates DFM changes to the running
binary without re-running the installer, matching the behaviour called
out in the README.
- **`setup/post-install.sh`** — drops the `git clone
https://github.com/VictorGSchneider/DFM.git` block. `install.sh` is
already invoked from post-install, so DFM gets installed once, from the
fork, via the same path as every other `stoa-*` script. Runtime deps in
`$DFM_PKGS` (python / python-gobject / gtk4 / libadwaita) are unchanged.
- **`scripts/stoa-doctor.sh`** — adds a `_check_bin dfm` entry so a
missing binary shows up in the login doctor report instead of only
surfacing when the user hits `Super+G`.
- **`scripts/stoa-dfm/data/dfm.desktop`** — XDG entry for the fork, so
rofi drun / app grids discover DFM. `install.sh` symlinks it into
`~/.local/share/applications/`.
- **`scripts/vendor/dfm/data/dfm.desktop`** — mirrors the fork so the
vendored upstream snapshot stays aligned with the matching commit on
`VictorGSchneider/DFM@claude/integrate-dfm-stoalinux-U50VJ` (the same
`data/dfm.desktop` file is added there). Next `sync-upstream.sh dfm`
after upstream merges will be a no-op for this path.
## Test plan
- [ ] `bash -n install.sh setup/post-install.sh scripts/stoa-doctor.sh`
(done locally, passes)
- [ ] On a fresh Arch box with `pipx`: `./install.sh` — verify `dfm`
resolves to `~/.local/bin/dfm`, launches GTK4 window, and the `.desktop`
entry shows up in rofi drun.
- [ ] On a box without `pipx` (venv fallback): `./install.sh` — verify
`~/.local/share/dfm-venv/bin/dfm` is created and `~/.local/bin/dfm` is
the symlink target.
- [ ] Re-run `./install.sh` — should be idempotent (pipx `--force`
upgrades, venv re-creates without error).
- [ ] `stoa-doctor` with `dfm` uninstalled — verify the `[FAIL]` entry
appears in `~/.config/stoa/doctor.log` and the dunst notification fires.
- [ ] `Super+G` from Hyprland and i3 sessions.
## Paired change
`VictorGSchneider/DFM` on the same branch name adds the matching
upstream `data/dfm.desktop` so the fork/vendor pair tracks upstream
without drift.
https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA5 files changed
Lines changed: 62 additions & 30 deletions
File tree
- scripts
- stoa-dfm/data
- vendor/dfm/data
- setup
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
234 | 265 | | |
235 | 266 | | |
236 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
539 | 513 | | |
540 | 514 | | |
541 | 515 | | |
| |||
0 commit comments