hop
Hop: a small native macOS launcher. Clipboard history, find, on-device dictation and your coding agent behind one key.
Brought by drakestapleton
| 1 | # Hop on Linux |
| 2 | |
| 3 | This is the first Linux desktop edition, for the Spark. It opens a native window, finds and launches applications, finds and opens your indexed files, and offers Ask when you connect a model. It runs separately from the Mac edition. |
| 4 | |
| 5 | This edition is still in development. Clipboard history, account storage, voice, the coding-agent screen and a global keyboard shortcut have not been ported. The window uses a basic system font; international text rendering is incomplete. Native Wayland and XWayland are unverified. Ask sends one question at a time, and the window waits for the answer. |
| 6 | |
| 7 | ## Build and install |
| 8 | |
| 9 | Run `./build.sh` from this repository on the Spark. It reads the current `main` from `~/git/omega-mv.git`, checks the compiler's own checksum, and builds the Linux program and its matching helper. `OMEGA_STORE` can name another local Omega repository. The build follows that repository's current `main`; it does not use the Mac edition's historical compiler pin. The compiler revision is recorded in `build/linux-toolchain/source-commit`. |
| 10 | |
| 11 | Run `./build.sh install` to build and install the Linux edition. Installation requires a clean source checkout whose exact commit is the current published Hop `main`. Development branches are refused. Existing unrelated files are preserved. The installer adds Hop to your application menu and puts the `hop` command in your personal programs folder. It keeps previous versions for recovery. |
| 12 | |
| 13 | A successful clean build records its source and compiler revisions and the checksums of the compiler and both program files. The installer checks those records and the copied programs before publishing the launchers. A failed or unfinished build cannot reuse the previous build's record. |
| 14 | |
| 15 | The desktop needs a local X11 session and its normal display authorization. Hop never disables display authorization. On a machine without a desktop session it reports the missing display and exits. The terminal commands below work without a desktop. |
| 16 | |
| 17 | ## Use |
| 18 | |
| 19 | Open Hop from the application menu. Start typing an application's name, choose a result with the arrows or the mouse, and press Enter. Escape closes the window. |
| 20 | |
| 21 | Type `find ` followed by words from a filename to search your file list. If you do not have a list yet, Enter builds one. Unreadable folders produce a coverage warning while the usable results remain available. A failed save preserves the previous good list. Rebuilding is explicit; there is no background rescan loop. The default scan leaves out hidden and generated folders and the Spark's scratch copies under `work/hive` and `work/lanes`. |
| 22 | |
| 23 | For Ask, your agent can configure `HOP_MODEL_URL` with your OpenAI-compatible server's base address and `HOP_MODEL` with the model's name. An optional `HOP_API_KEY` supplies its sign-in key. Hop does not guess a server, contact an AI provider until you send a question, or store that key on disk. Type `ask ` followed by your question, then press Enter. These settings must be present in Hop's launching environment, including when the application menu starts it; a settings screen is not implemented yet. |
| 24 | |
| 25 | `hop --search TEXT` prints matching application names. `hop --open TEXT` opens the first match. `hop --reindex [ROOT ...]` rebuilds the file list, and `hop --find TEXT` returns matching paths as JSON. `hop --selftest` checks the actual Linux search helper. `hop --help` lists the available commands. |
| 26 | |
| 27 | The file list lives in `$XDG_CACHE_HOME/hop/files.idx`, or `~/.cache/hop/files.idx` when that setting is absent. Its format retains filenames with line breaks. It records paths and coverage, not file contents. The file-index gate checks that an alarm on a large index never truncates it or stops the work. The Mac remote-file builder still uses the older route; this Linux implementation does not claim that the installed Mac caller has been updated. |
| 28 | |
| 29 | ## Implementation and verification |
| 30 | |
| 31 | All new application and build logic is seeded Omega. `window.om` connects directly to the X11 protocol. `apps.om` reads the desktop's application entries. `core.om` talks to the unchanged `Omega/hopcore.om` helper through its existing protocol. `chat.om` owns request construction and answer parsing. `build.om` builds the programs, and `install.om` installs only published source. |
| 32 | |
| 33 | The system commands that remain are explicit platform dependencies: `gio` launches desktop application entries with the desktop's own permissions and argument rules; `env` carries the user's desktop session into child programs; `curl` carries HTTP and HTTPS requests with certificate verification. Their exact build-host versions are generated in `build/linux/dependency-*.txt`. The intended Omega replacements are desktop-entry execution and D-Bus activation, inherited-environment execution, and the existing Omega TLS implementation with native DNS and HTTP. New first-party production code is Omega. Python is used only by external verification instruments under `tests/` and `tools/`; it is not part of the shipped application runtime. |
| 34 | |
| 35 | The small shell entry in the existing `build.sh`, plus Git and tar, bootstraps the current seeded Omega build driver. The previous Mac build remains in that script. The Mac generators still refer to their historical compiler; replacing those generators is separate migration work. |
| 36 | |
| 37 | The build and installer also use the system's `sha256sum` as a read-only verification tool. Its exact version is recorded with the other build dependencies. It is not needed to run the installed application. |
| 38 | |
| 39 | The acceptance checks use private application fixtures, a private authenticated virtual desktop and a local model stand-in. They do not contact a live AI provider, change a desktop session or install into the real home folder. Run the verifiers with their `--help` option for their compiler and evidence arguments. The combined acceptance evidence is recorded beside the landing receipt; isolated component tests alone do not establish that the combined application works. |