Repository navigation
Add an optional Strata context-menu action for Omdrop - #68
shaecodes-wilde wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Thanks for the contribution, @shaecodes-wilde! This PR needs some work before we can merge:
- Test it end to end. Run this revision on real hardware, including starting with Omdrop off; those are #54's acceptance criteria. Add the result when you have it. You don't need to test Contacts Only if you haven't extracted your Apple ID AirDrop credentials yet; we can test that case on our side.
- Retry discovery when Omdrop starts off. The action runs one
peers -nlookup straight afteromdrop on 10m, and a window that has just opened often hasn't seen any devices yet. Retry a few times, or useomdrop peers -n --json --stream. Add a test where the fakeomdropreturns[]first and a device second, and the send still happens. - Device instructions. "Set Everyone for 10 Minutes" is right for the self-signed identity, which is what most people use. With the Apple ID identity, Contacts Only works too. Either say so, or base the hint on
omdrop identity status --json("window": "self-signed"), asunreachable_messageinbin/omdropdoes. Any share sheet wakes AirDrop, not only Photos. - Refresh stale copies. A plugin update leaves the old
run.pyinstalled. Haveomdrop setuprefresh an installed, unedited copy (your checksum record already tells you which ones are safe). Keep that refresh as its own command, such asomdrop strata refresh, whichsetupcalls, so it can be tested on its own. Add a test that an unedited copy is updated and an edited one is left alone. - Minor:
strata removesays "Removed" when nothing was installed; use "Omdrop…" to match the product name; and choose a share or send icon instead ofglobe.
Your PR motivated me to install Strata, and I look forward to playing with it! I also look forward to getting your work integrated with Omdrop - thanks again!
|
Hi @shaecodes-wilde, an update that changes part of my review. Since you opened this, Omdrop 0.18.0 has made omdrop-core, Omdrop's Rust version, the one that runs on Macs. Whenever core is installed with a radio backend that supports it, What still applies:
What changes:
|
Add an optional OmDrop… file context-menu action for Strata. It reads the whole selection, opens a GTK 4 device picker, and calls the existing Omdrop sender with separate arguments for every path.
Related to #54: this implements the custom-action option A. The menu entry is static and discovery starts after clicking; a persistent file provider with peers directly in the menu is outside this PR.
Behavior
omdrop strata installinstalls regular, owner-only action files in$XDG_CONFIG_HOME/strata/actions/omdrop. Strata refuses symlinked actions, so this copies the assets rather than linking them.omdrop strata removeremoves an unedited installed action. A checksum record allows updates of previous unedited bundles; either operation preserves existing, edited, symlinked, or extra user files. Setup does not install it automatically. README covers dependencies, use, errors, removal, and uninstall cleanup.--. Folders are refused with a suggestion to compress them;.webloc/.urlhandling stays withomdrop send.Validation
Base: current main
5e01a4630e81709fc9dba0e596b5bd9394e0fad1.python3 -m unittest discover -s tests: current main 234 passed, this branch 243 passed; no failures.bash -n bin/omdropandgit diff --check: passed.The earlier locally installed action successfully sent a PNG to an iPhone 16 Pro Max and the user confirmed it opened. That setup used MT7922, the separately patched mt76 driver and Omdrop owl; its hardware result does not validate the installer/revalidation additions in this exact branch. The user reconfirmed a successful Strata right-click-to-iPhone transfer while this PR was being prepared. Draft pending a fresh end-to-end test of the new installer/revalidation additions on this packaged revision, including starting Omdrop off. Mac hardware and other radio backends are untested; exact iOS version remains unverified. The existing working desktop installation is unchanged.