How to disable "Allow Ghostty to Execute" confirmation prompt for -e flag? #10203
Issue DescriptionI run Ghostty as a background process (macos-hidden = always, initial-window = false) and use Alfred workflows to launch specific terminal applications (nchat, claude, aerc, etc.) via: /Applications/Ghostty.app/Contents/MacOS/ghostty -e /usr/local/bin/nchat When launching Ghostty with the -e flag to execute a command, a confirmation dialog appears every time asking "Allow Ghostty to Execute [command]?" There is no "Remember" or "Always Allow" option, so this prompt appears on every invocation. I tried using open -na Ghostty.app --args -e /usr/local/bin/nchat bypasses the prompt but causes the command to exit immediately. Adding --wait-after-command=true keeps the window open but requires an extra keypress after the command exits. Expected BehaviorI run Ghostty as a background process (macos-hidden = always, initial-window = false) and use Alfred workflows to launch specific terminal applications (nchat, claude, aerc, etc.) via: /Applications/Ghostty.app/Contents/MacOS/ghostty -e /usr/local/bin/nchat Actual BehaviorWhen launching Ghostty with the -e flag to execute a command, a confirmation dialog appears every time asking "Allow Ghostty to Execute [command]?" There is no "Remember" or "Always Allow" option, so this prompt appears on every invocation. Reproduction Steps
Ghostty LogsNo response Ghostty VersionOS Version InformationmacOS Darwin 24.6.0 (Linux only) Display ServerNone (Linux only) Desktop Environment/Window ManagerNo response Minimal Ghostty Configuration# /tmp/ghostty-test/config
# minimal test configAdditional Relevant ConfigurationNo response I acknowledge that:
|
Replies: 1 comment
|
This can't be disabled because disabling it is a serious attack vector that was disclosed in a prior security disclosure: GHSA-q9fg-cpmh-c78x Fork Ghostty yourself and comment out the code. That's why open source is awesome. |
This can't be disabled because disabling it is a serious attack vector that was disclosed in a prior security disclosure: GHSA-q9fg-cpmh-c78x
Fork Ghostty yourself and comment out the code. That's why open source is awesome.