8568 Commits

Author SHA1 Message Date
Mitchell Hashimoto
e14cbdf8f9 Allow startup without $HOME writable
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.
2025-01-01 13:55:22 -05:00
Mitchell Hashimoto
e51065367c note source tarball name for 1.0.0 2025-01-01 13:55:22 -05:00
Tristan Partin
192a527e98 apprt/gtk: use CSS variables to deduplicate code
Signed-off-by: Tristan Partin <tristan@partin.io>
2025-01-01 13:55:22 -05:00
Tristan Partin
acfd503f1c apprt/gtk: style the tab overview when window-theme=ghostty
This requires libadwaita main (to be 1.8).

Signed-off-by: Tristan Partin <tristan@partin.io>
2025-01-01 13:55:22 -05:00
GoProSlowYo
59ec2338f2 Fix typo in list-themes browser
Signed-off-by: GoProSlowYo <68455785+goproslowyo@users.noreply.github.com>
2025-01-01 13:55:22 -05:00
521337
25beb650b3 Fix typo in config reference: window-decorations -> window-decoration 2025-01-01 13:55:22 -05:00
Tristan Partin
46c6c3e086 apprt/gtk: create the tab overview even if gtk-titlebar=false
self.isAdwWindow() obscures that check a bit.

Signed-off-by: Tristan Partin <tristan@partin.io>
2025-01-01 13:55:22 -05:00
Jon Parise
fad04ba178 macos: disable auto-updates for local builds
The auto-update prompt isn't useful for local (source) builds. Disable
it by default by setting Sparkle's SUEnableAutomaticChecks Info.plist
key to NO (false) for all build configurations.

We then selectively re-enable it by deleting that Info.plist key from
our release workflows. We delete the key instead of setting its value to
YES (true) to give us Sparkle's default behavior of prompting the user
to enable update checks on the second application launch. (YES tells
Sparkle to skip that prompt and silently enable update checks.)

See also: https://sparkle-project.org/documentation/customization/
2025-01-01 13:55:22 -05:00
Mitchell Hashimoto
375328c633 ci: keep old source tarballs as well 2025-01-01 13:55:22 -05:00
Anthony
4094eee3ab Use github yaml substitution for yaml element 2025-01-01 13:55:22 -05:00
Anthony
379f373b9a CI: Update release-tag.yml to include the version in the source archive name and prefix 2025-01-01 13:55:22 -05:00
Mitchell Hashimoto
217f35ebeb Revert "macos: disable auto-updates for local (source) builds (#3273)"
This reverts commit b39850fd8b463f78c6fb450cd7a59e43bdf4b622, reversing
changes made to 64ea3a1a29677ca5f094f8058c40c549bb741bc5.
2025-01-01 13:55:22 -05:00
Jon Parise
692322d9b8 macos: disable Sparkle checks in Debug and Release
This approach uses Xcode's Info.plist preprocessing to conditionally set
`SUEnableAutomaticChecks=false` for the Debug and Release build schemes.
It is unset for the ReleaseLocal scheme.

When this Info.plist key is explicitly set to false (as it is for these
build schemes), we disable auto-updates at runtime. Otherwise, we apply
the behavior defined by our "auto-update" configuration.
2025-01-01 13:55:22 -05:00
Jon Parise
821a8f00c5 macos: disable auto-updates for local (source) builds
The auto-update prompt isn't useful for local (source) builds so disable
both update checks and automatic downloads.

There are multiple ways we could check if we've been built for source,
but the easiest and least intrusive approach is to check the value of
the 'GhosttyCommit' Info.plist key. Because it is only set as part of
the release build process, an empty key implies that we've been build
from source.
2025-01-01 13:55:22 -05:00
Gregory Anders
f9c9a80493 renderer: track if fg/bg/cursor color is explicitly set by an OSC
The renderer must track if the foreground, background, and cursor colors
are explicitly set by an OSC so that changes are not overridden when the
config file is reloaded.
2025-01-01 13:55:22 -05:00
Anund
0144d29813 testing: point Command.zig at ~more universal external binaries
The `Command.zig` tests reach outside the local source tree and look for
files on the host os machine. This introduces some portability issues
for the tests.

The nix build sandbox doesn't include `/usr/bin/env` making it error out
when `zig build test` runs `Command.zig` tests as part of a `nix build`.
Current ci and local development relies on `nix develop` sharing a host os
file system that includes `/usr/bin/env`.

Turns out `/tmp` and `/bin/sh` are available in the build sandbox in
nix so we swap these in to enable nixpkg builds to include testing
ghostty as part of any update cycle.
2025-01-01 13:55:22 -05:00
Anund
6877b1a894 testing: move cleanup of execveZ into the test code 2025-01-01 13:55:22 -05:00
Anund
ae443ae1bd testing: handle execveZ failing during test execution
Duplicating a test process via fork does unexepected things.
zig build test will hang
A test binary created via -Demit-test-exe will run 2 copies of the test suite
2025-01-01 13:55:22 -05:00
Mitchell Hashimoto
b976b10372 config: add title_report (default false) to configure CSI 21 t 2025-01-01 13:55:22 -05:00
Adam Wolf
bb3de9008d fix: scrollback limit not being parsed correctly 2025-01-01 13:55:22 -05:00
Maciej Bartczak
34e5f55165 Invalidate the timer when the surface is destroyed 2025-01-01 13:55:22 -05:00
Maciej Bartczak
e5bbd14295 Add delay before updating the title 2025-01-01 13:55:22 -05:00
Misaki Kasumi
73a4f0a1fd misc: add desktop entry fields to support xdg-terminal-exec 2025-01-01 13:55:22 -05:00
Sebastian Estrella
b93bc6be5b Add default Nix overlay 2025-01-01 13:55:22 -05:00
Richard Feldman
2faf08976d Fix markdown formatting for (blank) in docs
It currently has two backticks side by side, which end up rendering as actual backticks rather than a code-formatted blank space.
2025-01-01 13:55:22 -05:00
hustcer
9e1e2ab282 chore: Add milestone workflow to add milestone to merged PR and fixed Issues 2025-01-01 13:55:22 -05:00
Jeffrey C. Ollie
b55574afbd gtk/x11: link directly to libX11, no more dlopen 2025-01-01 13:55:22 -05:00
Tristan Partin
85609be719 apprt: add window-titlebar-{background,foreground} config options
This gives people finer-grained control over the coloring of their
window titlebars. Currently only implemented for GTK.

Signed-off-by: Tristan Partin <tristan@partin.io>
2025-01-01 13:55:22 -05:00
Misaki Kasumi
b73c7e46f9 cgroup: change suffix to .scope 2025-01-01 13:55:21 -05:00
XiaoYan Li
ab186ceb6b Fix the typing error when building on Linux
Co-authored-by: Gareth Widlansky <101901964+gerblesh@users.noreply.github.com>
2025-01-01 13:55:21 -05:00
Xiaoyan Li
a0b1bbab7b Use premultiplied alpha for renderer clearColor
Fixes #3324
2025-01-01 13:55:21 -05:00
Mohammadi, Erfan
7298d965c0 confirm-close-surface option can be set to always to always require confirmation
Fixes #3648
The confirm-close-surface configuration can now be set to always
ensuring a confirmation dialog is shown before closing a surface, even
if shell integration indicates no running processes.
2025-01-01 13:55:21 -05:00
Mitchell Hashimoto
200cf6b651 ci: our GTK tests were installing Cachix twice 2025-01-01 13:55:21 -05:00
Koray08
609ba944fa Replace 'w' with '\x15' 2025-01-01 13:55:21 -05:00
Koray08
ec3fe8d17f Add 'command delete' default to macOS 2025-01-01 13:55:21 -05:00
mitchellh
3dee60ae49 deps: Update iTerm2 color schemes 2025-01-01 13:55:21 -05:00
Mitchell Hashimoto
a053ebb941 Update the pre-approved issue template 2025-01-01 13:55:21 -05:00
Mitchell Hashimoto
447be5285e ci: install nix 2025-01-01 13:55:21 -05:00
Mitchell Hashimoto
3348c62270 run gtk matrix on small instances 2025-01-01 13:55:21 -05:00
Mitchell Hashimoto
ccb92abd23 prettier 2025-01-01 13:55:21 -05:00
Mitchell Hashimoto
a57b5c802e ci: test gtk via a matrix 2025-01-01 13:55:21 -05:00
Jeffrey C. Ollie
da3e5ccf06 gtk: add option to not link against libX11 2025-01-01 13:55:21 -05:00
Qingyao Sun
b663ac1eaf Clarify how to read logs on macOS 2025-01-01 13:55:21 -05:00
Jelle Besseling
33df3365af docs: Add info about adjustments to adjustment config options 2025-01-01 13:55:21 -05:00
Ronit Gandhi
160c262696 docs: add guide for setting quick terminal toggle keybind 2025-01-01 13:55:21 -05:00
Hisam Fahri
4d0feaa191 Update Config.zig 2025-01-01 13:55:21 -05:00
Matt Mirus
d53b93891e chore: undo unintentional change
I think this must have snuck in due to my fork falling behind the
upstream.
2025-01-01 13:55:21 -05:00
Matt Mirus
c86de63e18 docs: correct default value of gtk-single-instance
`desktop` is the default value of `gtk-single-instance`; `detect` is not a valid value.
2025-01-01 13:55:21 -05:00
Finn Voorhees
153caa4ec6 Add MDItemKeywords 2025-01-01 13:55:21 -05:00
Leigh Oliver
c7491566da fix(gtk): fix segfault/bus error on ctrl+d 2025-01-01 13:55:21 -05:00