Skip to content
Open
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
6 changes: 3 additions & 3 deletions pkgbuilds/hermes-desktop/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

pkgname=hermes-desktop
pkgver=2026.9.7
pkgrel=5
pkgrel=6
pkgdesc='Native desktop shell for Hermes Agent'
arch=('x86_64')
url='https://github.com/NousResearch/hermes-agent'
Expand Down Expand Up @@ -75,11 +75,11 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz
'runtime.patch'
'runtime-test.py')
sha256sums=('907c2a72db1c5dd637ea8eeae97f4cb5b32cef615c17258f6b190924ec5bf688'
'1c513d0376fbd0c433005bd591d89d04361ecda6335bedf0fec975d80ca71037'
'8a88616709c9d29064f78d20d3fcfbe283fb862c7d24f6ad6ba94fbd2d3b5afc'
'3ef685bfcf366776b025d26c37d32854d8d4aa2023b2bd07c8e08b001ef1e8c4'
'd60d164e24fdcf6532133b8ea43c77a201e4b9e9dbc396187b58d51d8590ef52'
'9d5015d1be762a901f8f64319981ae862e9852fa5cb9a22a2ba1e691f90430a2'
'9587f495b2d76a7b67b55f2edf4c92b15152a8b08415008d3c20d428ba77f56c')
'59d85ea1e2a85721e0020a8be81c6d6b86b4dd9a2b57ff4b392e588278a145fe')

build() {
cd "${srcdir}/${_srcdir}"
Expand Down
8 changes: 5 additions & 3 deletions pkgbuilds/hermes-desktop/hermes-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ if runtime:
from hermes_cli.main import _desktop_launch_options
from hermes_constants import with_hermes_node_path

# Newer runtimes append renderer_accessibility; the packaged release returns four.
flags, gpu, store, ozone, *extra = _desktop_launch_options()
# Older runtimes return three settings; later versions append ozone and a11y.
flags, gpu, store, *extra = _desktop_launch_options()
if extra:
a11y = extra[0]
ozone = extra[0]
if len(extra) > 1:
a11y = extra[1]
env = with_hermes_node_path(env)
except ImportError:
print("Could not load Hermes desktop settings; using launch defaults.", file=sys.stderr)
Expand Down
19 changes: 19 additions & 0 deletions pkgbuilds/hermes-desktop/runtime-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,23 @@ def check_launch(args=(), overrides=None, expected_args=(), store="gnome-libsecr
check_launch(overrides={"ELECTRON_RUN_AS_NODE": "1", "PYTHONPATH": "/invalid", "PYTHONHOME": "/invalid"})

config = home / ".hermes/config.yaml"
# Runtimes installed by the 2026.8.18 package return only three settings.
legacy_helper = helper + '''
_first_four = _desktop_launch_options
def _desktop_launch_options():
return _first_four()[:3]
'''
(module / "main.py").write_text(legacy_helper)
check_launch([url], wayland, ["--ozone-platform=wayland", url])
config.write_text(json.dumps({"desktop": {"disable_gpu": True, "password_store": "kwallet5",
"electron_flags": ["--test=a b"]}}))
check_launch([url], wayland, ["--ozone-platform=wayland", "--test=a b", url],
store="kwallet5", gpu="1")
check_launch([url], {**wayland, "HERMES_DESKTOP_DISABLE_GPU": "0",
"HERMES_DESKTOP_PASSWORD_STORE": "basic", "ELECTRON_OZONE_PLATFORM_HINT": "x11"},
["--test=a b", url], store="basic", gpu="0", ozone="x11")
(module / "main.py").write_text(helper)

config.write_text(json.dumps({"desktop": {"disable_gpu": True, "password_store": "kwallet5",
"ozone_platform_hint": "x11",
"electron_flags": '--force-device-scale-factor=1.5 "--test=a b"'}}))
Expand Down Expand Up @@ -234,6 +251,8 @@ def check_namespace_failure():
check_launch([url], wayland, ["--ozone-platform=wayland", url], ignore="1")
check_launch([url], {**wayland, "HERMES_DESKTOP_IGNORE_EXISTING": "0"}, ["--ozone-platform=wayland", url],
ignore="0")
(module / "main_desktop.py").write_text(legacy_helper)
check_launch([url], wayland, ["--ozone-platform=wayland", url], ignore="1")
(module / "main_desktop.py").write_text('raise ImportError("incomplete Python dependencies")\n')
check_launch([url], wayland, ["--ozone-platform=wayland", url], ignore="1")
shutil.rmtree(runtime / "venv")
Expand Down
Loading