hyper/app/utils
Philip Peterson e2de7e18d1
Fix linux issues (#375)
* Support scroll on linux

* Close tab on middle-click of the X button too

The X icon only had onClick, which browsers never fire for the middle
button. Wire it to the same middle-click handler already used on the
tab body so middle-clicking the X closes the tab like clicking
anywhere else on it does.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Spawn shell via flatpak-spawn --host on Flatpak builds

The Flatpak build sandboxes the shell inside the app's mount namespace,
so PATH ends up as whatever the runtime provides (/app/bin:/usr/bin)
with no access to /usr/local or /home/linuxbrew, unlike an unsandboxed
terminal like Konsole. Route the pty through flatpak-spawn --host so
the shell actually runs on the host and its --login profile computes a
normal host PATH, and grant the org.freedesktop.Flatpak talk-name the
portal needs for this.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Document Flatpak shell-spawning fix and bare-shell-name limitation

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Fix prettier lint in session.ts and tabs.tsx

Both fit within the 120-column print width, so prettier wants them on
one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-11 08:00:02 -08:00
..
cli-install.ts Upgrade eslint (#291) 2026-05-06 13:48:06 -07:00
colors.ts Fix @typescript-eslint/no-unsafe-return errors 2021-04-07 21:50:32 +05:30
flatpak.ts Fix linux issues (#375) 2026-10-11 08:00:02 -08:00
map-keys.ts fix anonymous default exports 2023-07-26 00:16:14 +05:30
renderer-utils.ts port app/utils and app/plugins to ts 2019-12-26 16:34:09 +01:00
shell-fallback.ts add fallback shell configs 2023-07-26 12:19:16 +05:30
system-context-menu.ts fix windows context menu entry 2023-06-18 21:19:14 +05:30
to-electron-background-color.ts fix anonymous default exports 2023-07-26 00:16:14 +05:30
window-utils.ts port app/utils and app/plugins to ts 2019-12-26 16:34:09 +01:00