New tabs should open in current working directory

Bug #1973825 reported by Jeremy Bícha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Console
New
Unknown
gnome-console (Debian)
Fix Released
Unknown
gnome-console (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

It is expected that new tabs will open in the same working directory as the current tab.

This isn't working on Debian and Ubuntu yet.

gnome-terminal works because of this patch:
https://salsa.debian.org/gnome-team/gnome-terminal/-/blob/debian/master/debian/patches/Provide-fallback-for-reading-current-directory-if-OS.patch

Tags: jammy kinetic
Changed in gnome-console (Debian):
status: Unknown → Confirmed
Changed in gnome-console:
status: Unknown → New
Jeremy Bícha (jbicha)
description: updated
Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :
Jeremy Bícha (jbicha)
Changed in gnome-console (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :

Also, a quick solution (but should work only with BASH) is to edit the /etc/bash.bashrc file in the bash package and set

    PROMPT_COMMAND='echo -ne "\\033]6;file://${PWD}\\007"'

Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :

In fact, I see that just adding

  if [ -f /etc/profile.d/vte-2.91.sh ];
  then
    source /etc/profile.d/vte-2.91.sh
  fi

to /etc/bash.bashrc should be enough...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-console - 42~beta-2ubuntu1

---------------
gnome-console (42~beta-2ubuntu1) kinetic; urgency=medium

  * debian/control: Recommend nautilus-extension-gnome-console
    (Closes: #1008833)
  * Cherry-pick patches to support x-terminal-emulator interface
  * Add debian/postinst & debian/prerm to register kgx as
    an x-terminal-emulator with priority 40 (Closes: #1008805) (LP: #1977767)
  * Add proposed patch to enable new tabs to open in current working directory.
    Thanks to Sergio Costas (Closes: #1008806) (LP: #1973825)
  * Explicitly opt in to Ubuntu language packs

 -- Jeremy Bicha <email address hidden> Fri, 29 Jul 2022 14:48:49 -0400

Changed in gnome-console (Ubuntu):
status: In Progress → Fix Released
Changed in gnome-console (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.