Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions docs/os/APP_AVAILABILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ initial overlapping windows do not hide the entry point.
report records wrong-password refusal and correct-password return to the same
session in its exact VirtualBox live case; see the field receipt below.

The owner-local #286 test reported that Wofi initially put literal `drun` in the
search field on both passes. Selecting that text and replacing it with
`Chromium` successfully opened the browser. This workaround and unresolved
launcher quirk are retained in the field receipt below.
The owner-local #286 and #288 tests reported that Wofi presented literal `drun`
and that the tester cleared it before typing the application name. The follow-up
launcher candidate now routes Super+Space through `phios-launcher`, which invokes
Wofi in `drun` mode with an explicit `Applications` prompt and supplies no
`--search` value. This removes the mode-name prompt ambiguity without seeding an
application query. The required field acceptance test is still explicit: open an
untouched launcher and type `chromium` directly, without Ctrl+A or clearing any
text, before classifying the regression closed.

Approved external app desktop entries continue through the existing governed
desktop-launch path. `phi-app catalog-desktop-apps` in Foot inspects the catalog;
Expand All @@ -67,8 +71,9 @@ evidence that the ecosystem apps were installed.

The launcher repair changes UI state and connects existing read-only panels.
It introduces no HTTP process-launch endpoint, download, install, model pull,
grant, policy change or private kernel implementation. Packaging increments
PhiShell's Arch package revision from 3 to 4 at the same `0.16.0` version.
grant, policy change or private kernel implementation. Packaging originally advanced PhiShell from Arch package revision 3 to 4 for the
shell repair; this launcher follow-up advances it from 4 to 5 at the same `0.16.0`
version.
The OS release remains `0.1.0-alpha.1` experimental. Full external app integration
needs its own exact source/artifact selection, runtime contract and qualification.

Expand All @@ -89,10 +94,13 @@ does not qualify a replacement ISO, the physical Skytech/RTX 5070 machine or
authorize merging, tagging or publishing.

The separate #288 retest on normal ISO `0e68508d...` again reports working shell
navigation and tool windows, but classifies launcher regression **PARTIAL FAIL**:
Super+Space reportedly inserts literal `drun` and requires Ctrl+A before typing
`chromium`, both initially and after cold boot. The report also records successful
same-session lock/refusal/unlock and the installed NBG-A reader/refusal checks.
navigation and tool windows, but classifies its launcher observation **PARTIAL FAIL**:
Super+Space presented literal `drun` and the tester used Ctrl+A before typing
`chromium`, both initially and after cold boot. That historical result remains
unchanged. The new package-revision-5 candidate requires a fresh exact-image test
that types directly into the untouched launcher before the result can be upgraded.
The #288 report also records successful same-session lock/refusal/unlock and the
installed NBG-A reader/refusal checks.
Reality Ledger's backend remains **UNAVAILABLE**. See
[virtualbox-field-a44dd077.json](evidence/virtualbox-field-a44dd077.json) for the
exact binding, host-regenerated JSON origin and remaining launcher observation.
Expand Down
3 changes: 2 additions & 1 deletion packaging/arch/phishell/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname=phishell
pkgver=0.16.0
pkgrel=4
pkgrel=5
pkgdesc='PhiShell browser interface and local observation transport'
arch=('any')
url='https://github.com/MichaelWave369/PhiOS'
Expand All @@ -27,6 +27,7 @@ package() {
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/phishell/LICENSE"
install -Dm755 packaging/linux/session/phios-session "$pkgdir/usr/bin/phios-session"
install -Dm755 packaging/linux/session/phios-open-shell "$pkgdir/usr/bin/phios-open-shell"
install -Dm755 packaging/linux/session/phios-launcher "$pkgdir/usr/bin/phios-launcher"
install -Dm755 packaging/linux/session/phios-lock "$pkgdir/usr/bin/phios-lock"
install -Dm755 packaging/linux/session/phios-session-ready "$pkgdir/usr/lib/phishell/session-ready"
install -Dm644 packaging/linux/session/virtualbox-compat.sh "$pkgdir/usr/lib/phishell/virtualbox-compat.sh"
Expand Down
8 changes: 8 additions & 0 deletions packaging/linux/session/phios-launcher
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail

# Keep the Wofi mode separate from the visible prompt. Earlier field tests saw
# the default mode name ("drun") and treated it as seeded search text.
# Deliberately do not pass --search here: an untouched launcher must begin with
# no application query.
exec wofi --show drun --prompt Applications
2 changes: 1 addition & 1 deletion packaging/linux/session/wayfire.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ command_terminal = foot phi
binding_linux_terminal = <super> <alt> KEY_ENTER
command_linux_terminal = foot
binding_launcher = <super> KEY_SPACE
command_launcher = wofi --show drun
command_launcher = phios-launcher
binding_shell = <super> KEY_P
command_shell = phios-open-shell
binding_lock = <super> KEY_L
Expand Down
52 changes: 52 additions & 0 deletions tests/test_os_launcher_v01.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
from __future__ import annotations

import json
import os
import subprocess
from pathlib import Path

REPO = Path(__file__).resolve().parents[1]
LAUNCHER = REPO / "packaging/linux/session/phios-launcher"
WAYFIRE = REPO / "packaging/linux/session/wayfire.ini"
PKGBUILD = REPO / "packaging/arch/phishell/PKGBUILD"


def test_wayfire_uses_packaged_launcher_wrapper() -> None:
config = WAYFIRE.read_text(encoding="utf-8")
assert "binding_launcher = <super> KEY_SPACE" in config
assert "command_launcher = phios-launcher" in config
assert "command_launcher = wofi --show drun" not in config


def test_launcher_starts_drun_with_explicit_prompt_and_no_seed_search(tmp_path: Path) -> None:
fake = tmp_path / "wofi"
fake.write_text(
"#!/usr/bin/env python3\n"
"import json, sys\n"
"print(json.dumps(sys.argv[1:]))\n",
encoding="utf-8",
)
fake.chmod(0o755)
env = {**os.environ, "PATH": str(tmp_path) + os.pathsep + os.environ["PATH"]}
result = subprocess.run(
["bash", str(LAUNCHER)],
env=env,
capture_output=True,
text=True,
timeout=10,
check=False,
)
assert result.returncode == 0, result.stderr
argv = json.loads(result.stdout)
assert argv == ["--show", "drun", "--prompt", "Applications"]
assert "--search" not in argv


def test_package_installs_launcher_and_advances_revision() -> None:
package = PKGBUILD.read_text(encoding="utf-8")
assert "pkgver=0.16.0" in package
assert "pkgrel=5" in package
assert (
'install -Dm755 packaging/linux/session/phios-launcher '
'"$pkgdir/usr/bin/phios-launcher"'
) in package
Loading