From 44d8fabb6ce682c742dca25e25ad52d07fbea891 Mon Sep 17 00:00:00 2001 From: RarityFan437 Date: Mon, 6 Jul 2026 19:27:39 +0700 Subject: [PATCH 1/3] Fix shortened path working only for the first tab (#2321) --- guake/guake_app.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/guake/guake_app.py b/guake/guake_app.py index aa4d671be..b11d383a9 100644 --- a/guake/guake_app.py +++ b/guake/guake_app.py @@ -1125,9 +1125,13 @@ def recompute_tabs_titles(self): # TODO NOTEBOOK this code only works if there is only one terminal in a # page, this need to be rewritten - for terminal in self.get_notebook().iter_terminals(): - page_num = self.get_notebook().page_num(terminal.get_parent()) - self.get_notebook().rename_page(page_num, self.compute_tab_title(terminal), False) + notebook = self.get_notebook() + for page_num in range(notebook.get_n_pages()): + terminals = notebook.get_terminals_for_page(page_num) + if terminals: + main_terminal = terminals[0] + new_title = self.compute_tab_title(main_terminal) + notebook.rename_page(page_num, new_title, False) def load_cwd_guake_yaml(self, vte) -> dict: # Read the content of .guake.yml in cwd From 2d47bcb03c8695f1bbf740a2badd459c84ed3be8 Mon Sep 17 00:00:00 2001 From: RarityFan437 Date: Mon, 6 Jul 2026 19:38:40 +0700 Subject: [PATCH 2/3] Fix shortened path working only for the first tab (#2321) --- releasenotes/notes/bugfix-tab-names.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 releasenotes/notes/bugfix-tab-names.yaml diff --git a/releasenotes/notes/bugfix-tab-names.yaml b/releasenotes/notes/bugfix-tab-names.yaml new file mode 100644 index 000000000..3054aa5ca --- /dev/null +++ b/releasenotes/notes/bugfix-tab-names.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fix shortened path tab names layout issue (#2321). + Tabs now correctly update their shortened titles regardless of splits layout. From 98177416f76ba91a1e8e6ca7657fb5523e3d03ee Mon Sep 17 00:00:00 2001 From: RarityFan437 Date: Sun, 6 Sep 2026 01:42:50 +0700 Subject: [PATCH 3/3] remove outdated comment --- guake/guake_app.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/guake/guake_app.py b/guake/guake_app.py index b11d383a9..b645dc545 100644 --- a/guake/guake_app.py +++ b/guake/guake_app.py @@ -1123,8 +1123,6 @@ def recompute_tabs_titles(self): if not use_vte_titles: return - # TODO NOTEBOOK this code only works if there is only one terminal in a - # page, this need to be rewritten notebook = self.get_notebook() for page_num in range(notebook.get_n_pages()): terminals = notebook.get_terminals_for_page(page_num)