Config template is created as an empty file #13772
Issue DescriptionAfter a fresh install (or removing any existing ghostty config file) ghostty creates an entirely blank config file, failing to include the config-template. I've confirmed this on both my machines. This issue is a regression from 1.2.3 to 1.3.0 and still present in current main. The relevant function changed as part of the zig 0.15 migration: Possibly related: #13259 proposes handling empty configuration files differently, while this concerns Ghostty generating an empty file instead of writing the bundled template. I used Codex: If confirmed I'd be happy to submit a PR if a one-liner is not too tedious to merge :) Expected BehaviorGhostty creates a new config file including the config-template for user orientation. Actual BehaviorGhostty creates an empty config file (0-byte) without the config-template content. Reproduction Steps
Ghostty LogsGhostty VersionOS Version InformationTahoe 26.6.1 (M1Pro) & Sequoia 15.7.7 (Intel) (Linux only) Display ServerNone (Linux only) Desktop Environment/Window ManagerNo response Minimal Ghostty ConfigurationNo existing configuration.Additional Relevant ConfigurationNo response I acknowledge that:
|
#13774