Set title to passed command when executing with -e

This commit is contained in:
Adria Lopez 2017-11-27 12:29:30 +01:00
parent 1f9ab29f74
commit b595d90ff5
1 changed files with 5 additions and 1 deletions

View File

@ -1760,7 +1760,11 @@ int main(int argc, char **argv) {
} else {
g_signal_connect(vte, "window-title-changed", G_CALLBACK(window_title_cb),
&info.config.dynamic_title);
window_title_cb(vte, &info.config.dynamic_title);
if (execute) {
gtk_window_set_title(GTK_WINDOW(window), execute);
} else {
window_title_cb(vte, &info.config.dynamic_title);
}
}
if (geometry) {