Add flag for quick terminal
parent
6b28671ead
commit
92aa960381
|
|
@ -342,7 +342,10 @@ class QuickTerminalController: BaseTerminalController {
|
|||
// animate out.
|
||||
if surfaceTree.isEmpty,
|
||||
let ghostty_app = ghostty.app {
|
||||
let view = Ghostty.SurfaceView(ghostty_app, baseConfig: nil)
|
||||
var config = Ghostty.SurfaceConfiguration()
|
||||
config.environmentVariables["GHOSTTY_QUICK_TERMINAL"] = "1"
|
||||
|
||||
let view = Ghostty.SurfaceView(ghostty_app, baseConfig: config)
|
||||
surfaceTree = SplitTree(view: view)
|
||||
focusedSurface = view
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1465,6 +1465,10 @@ pub const Surface = extern struct {
|
|||
// EnvMap is a bit annoying so I'm punting it.
|
||||
if (ext.getAncestor(Window, self.as(gtk.Widget))) |window| {
|
||||
try window.winproto().addSubprocessEnv(&env);
|
||||
|
||||
if (window.isQuickTerminal()) {
|
||||
try env.put("GHOSTTY_QUICK_TERMINAL", "1");
|
||||
}
|
||||
}
|
||||
|
||||
return env;
|
||||
|
|
|
|||
Loading…
Reference in New Issue