Skip to content

feat(dfm): wire install.sh to the in-tree stoa-dfm fork - #68

Merged
VictorGSchneider merged 1 commit into
mainfrom
claude/integrate-dfm-stoalinux-U50VJ
Apr 21, 2026
Merged

VictorGSchneider merged 1 commit into
mainfrom
claude/integrate-dfm-stoalinux-U50VJ

Conversation

@VictorGSchneider

Copy link
Copy Markdown
Owner

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 cloned 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_01C9MCwSGnmdcwA55X394WfA

The vendor/fork pattern for DFM was scaffolded in #66/#67 but nothing
actually consumed it — install.sh skipped DFM entirely, and
post-install.sh still git-cloned the upstream repo into
~/.local/share/dfm-app on every run, ignoring scripts/stoa-dfm/.

This makes install.sh (the dotfiles-only entry point) install DFM
editable from scripts/stoa-dfm/ via pipx (PEP 668 friendly), falling
back to a user-local venv. "Editable" keeps the symlink-style
semantics the rest of the repo relies on: `git pull` propagates DFM
changes to the running binary without re-running the installer.

The duplicate clone block in post-install.sh is dropped — it now
delegates to install.sh like every other Stoa script does. The
python/gtk4/libadwaita runtime deps it lists stay put.

stoa-doctor.sh now flags a missing `dfm` binary so broken installs
surface on login instead of only when Super+G is pressed.

A data/dfm.desktop entry is added so rofi drun and app grids pick
DFM up; install.sh symlinks it into ~/.local/share/applications/.
The file lives in scripts/stoa-dfm/data/ (the fork) and is mirrored
into scripts/vendor/dfm/data/ to keep the upstream snapshot aligned
with the matching DFM commit on this branch.

https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA
@VictorGSchneider
VictorGSchneider marked this pull request as ready for review April 21, 2026 22:50
@VictorGSchneider
VictorGSchneider merged commit 6698222 into main Apr 21, 2026
1 check passed
@VictorGSchneider
VictorGSchneider deleted the claude/integrate-dfm-stoalinux-U50VJ branch April 21, 2026 22:50
@VictorGSchneider VictorGSchneider self-assigned this Apr 21, 2026
VictorGSchneider added a commit that referenced this pull request Apr 21, 2026
## Summary

Follow-up to #68 — the integration is wired up in code but the README
still described the old state. This documents what actually happens now.

## What changed

- DFM section now explains that `install.sh` installs the in-tree fork
at `scripts/stoa-dfm/` as an editable pipx (or venv) package, links the
XDG desktop entry, and that `stoa-doctor` flags a missing `dfm` binary.
- Vendored-upstreams list now includes DFM alongside BRCS.sh.
- Launcher note: DFM is also reachable from rofi drun, not just
`Super+G`.

## Test plan

- [x] Diff reviewed — only `README.md` touched.
- [x] Render check on github.com.

https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA
VictorGSchneider added a commit that referenced this pull request May 9, 2026
## 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_01C9MCwSGnmdcwA55X394WfA
VictorGSchneider added a commit that referenced this pull request May 9, 2026
## Summary

Follow-up to #68 — the integration is wired up in code but the README
still described the old state. This documents what actually happens now.

## What changed

- DFM section now explains that `install.sh` installs the in-tree fork
at `scripts/stoa-dfm/` as an editable pipx (or venv) package, links the
XDG desktop entry, and that `stoa-doctor` flags a missing `dfm` binary.
- Vendored-upstreams list now includes DFM alongside BRCS.sh.
- Launcher note: DFM is also reachable from rofi drun, not just
`Super+G`.

## Test plan

- [x] Diff reviewed — only `README.md` touched.
- [x] Render check on github.com.

https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants