Skip to content

Commit

Permalink
Add environment variable when it's quake mode for users wanting to ch…
Browse files Browse the repository at this point in the history
…ange the behaviour of shell rc based on mode.
  • Loading branch information
kohnish committed Jun 19, 2021
1 parent be18012 commit 8c5d79c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/gx/tilix/application.d
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,14 @@ public:
activateAction(ACTION_COMMAND, new GVariant(param));
}

bool isQuake() {
AppWindow appWindow = cast(AppWindow) getActiveWindow();
if (appWindow !is null && appWindow.isQuake()) {
return true;
}
return cp.quake;
}

void addAppWindow(AppWindow window) {
appWindows ~= window;
//GTK add window
Expand Down
3 changes: 3 additions & 0 deletions source/gx/tilix/terminal/terminal.d
Original file line number Diff line number Diff line change
Expand Up @@ -2738,6 +2738,9 @@ private:
}
}
string[] envv = ["TILIX_ID=" ~ uuid];
if (tilix.isQuake) {
envv ~= ["TILIX_QUAKE=1"];
}
foreach (arg; args)
trace("Argument: " ~ arg);
try {
Expand Down

0 comments on commit 8c5d79c

Please sign in to comment.