summaryrefslogtreecommitdiff
path: root/src/global.zig
AgeCommit message (Collapse)Author
2025-10-03Zig 0.15: zig build test Mitchell Hashimoto
2025-07-09cli: make the action parser (+foo) generic and reusableMitchell Hashimoto
2025-06-24core, apprt: make runtimes implement resourcesDir directlyLeorize
2025-06-24core, gtk: implement host resources dir for FlatpakLeorize
Introduces host resources directory as a new concept: A directory containing application resources that can only be accessed from the host operating system. This is significant for sandboxed application runtimes like Flatpak where shells spawned on the host should have access to application resources to enable integrations. Alongside this, apprt is now allowed to override the resources lookup logic.
2025-05-26style: use decl literalsQwerasd
This commit changes a LOT of areas of the code to use decl literals instead of redundantly referring to the type. These changes were mostly driven by some regex searches and then manual adjustment on a case-by-case basis. I almost certainly missed quite a few places where decl literals could be used, but this is a good first step in converting things, and other instances can be addressed when they're discovered. I tested GLFW+Metal and building the framework on macOS and tested a GTK build on Linux, so I'm 99% sure I didn't introduce any syntax errors or other problems with this. (fingers crossed)
2025-03-12Lots of 0.14 changesMitchell Hashimoto
2025-03-07global state initializes i18nMitchell Hashimoto
2025-02-21Update libxev to use dynamic backend, support Linux configurabilityMitchell Hashimoto
Related to #3224 Previously, Ghostty used a static API for async event handling: io_uring on Linux, kqueue on macOS. This commit changes the backend to be dynamic on Linux so that epoll will be used if io_uring isn't available, or if the user explicitly chooses it. This introduces a new config `async-backend` (default "auto") which can be set by the user to change the async backend in use. This is a best-effort setting: if the user requests io_uring but it isn't available, Ghostty will fall back to something that is and that choice is up to us. Basic benchmarking both in libxev and Ghostty (vtebench) show no noticeable performance differences introducing the dynamic API, nor choosing epoll over io_uring.
2025-01-24Ignore SIGPIPEMitchell Hashimoto
Fixes #5359 The comments explain what's going on. Longer term we should adjust our termio/exec to avoid the SIGPIPE but its still possible (i.e. that thread crashes) to happen so we should be robust to it.
2025-01-02Move resource limits to a dedicated struct, restore before preexecMitchell Hashimoto
2025-01-01core: if we change RLIMIT_NOFILE, reset it when executing commandsJeffrey C. Ollie
2024-12-29Allow startup without $HOME writableMitchell Hashimoto
Fixes #3202 Two changes to get here: 1. Do not fail startup if crash reporting initialization fails. This is a non-critical feature and should not prevent the terminal from starting. 2. Avoid freeing Sentry transport on error path. This segfaults. Upstream issue will be reported separately.
2024-08-31move crash init to crash packageMitchell Hashimoto
2024-08-29timers for start times for laterMitchell Hashimoto
2024-08-28sentry init uses proper cache dir, sets tagsMitchell Hashimoto
2024-08-28initialize sentry on startupMitchell Hashimoto
2024-08-16move global state to dedicated fileMitchell Hashimoto