View Issue Details

IDProjectCategoryView StatusLast Update
0009409Kali LinuxKali Package Bugpublic2025-11-21 11:27
Reporterhummingbird Assigned Todaniruiz  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0009409: nautilus-extension-gnome-terminal: "Open in Terminal" always opens in HOME instead of selected folder (Nautilus 49 / GNOME 49)
Description

Package affected:
nautilus-extension-gnome-terminal (version 3.58.0-1kali1)

Other related packages:

  • nautilus 49.1-2 (GTK4)
  • python3-nautilus 4.0.1-3
  • gir1.2-nautilus-4.1 49.1-2
  • libnautilus-extension4 49.1-2
  • gnome-terminal (Kali default)

System:
Kali Linux Rolling
GNOME 49 (Wayland)
Nautilus 49.1 (GTK4)

Bug Description:
After installing Kali rolling with GNOME 49, Nautilus shows the menu item:
Right-click → “Open in Terminal”
This entry is provided by:
/usr/lib/x86_64-linux-gnu/nautilus/extensions-4/libterminal-nautilus.so

But clicking “Open in Terminal” does NOT open the terminal in the folder that was right-clicked. Instead, GNOME Terminal always opens in $HOME.

Expected Behavior:
Terminal should open in the selected folder.

Actual Behavior:
Terminal always opens in $HOME.

Additional Details:
Environment variables such as $NAUTILUS_SCRIPT_CURRENT_URI are empty.
GNOME Terminal DBus has no action for working directory.

Steps to Reproduce:

  1. Open Nautilus
  2. Navigate to any folder
  3. Right-click → “Open in Terminal”
  4. Terminal opens in HOME instead of selected folder

Conclusion:
This extension is not functional on GTK4-based Nautilus 49 and needs updating or patching.

Attached Files
nautilus_bug_log.txt (3,459 bytes)   
Nov 20 22:05:29 blink sudo[23020]:     humm : TTY=pts/0 ; PWD=/home/humm ; USER=root ; COMMAND=/usr/bin/apt install nautilus-extension-gnome-terminal
Nov 20 22:05:45 blink sudo[23036]:     humm : TTY=pts/0 ; PWD=/home/humm ; USER=root ; COMMAND=/usr/bin/apt install nautilus-extension-gnome-terminal nautilus-extension-gnome-terminal-dbgsym
Nov 20 22:07:30 blink sudo[23139]:     humm : TTY=pts/3 ; PWD=/home/humm/Downloads ; USER=root ; COMMAND=/usr/bin/apt remove nautilus-extension-gnome-terminal
Nov 20 22:07:56 blink dbus-daemon[2357]: [session uid=1000 pid=2357 pidfd=5] Activating service name='org.gnome.Nautilus' requested by ':1.19' (uid=1000 pid=2479 comm="/usr/bin/gnome-shell")
Nov 20 22:07:56 blink org.gnome.Nautilus[23208]: Connecting to org.freedesktop.Tracker3.Miner.Files
Nov 20 22:07:56 blink dbus-daemon[2357]: [session uid=1000 pid=2357 pidfd=5] Successfully activated service 'org.gnome.Nautilus'
Nov 20 22:07:58 blink org.gnome.Nautilus[23208]: MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:981: FINISHME: support more multi-planar formats with DRM modifiers
Nov 20 22:07:58 blink org.gnome.Nautilus[23208]: MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:949: FINISHME: support YUV colorspace with DRM format modifiers
Nov 20 22:07:58 blink dbus-daemon[2357]: [session uid=1000 pid=2357 pidfd=5] Activating service name='org.gnome.NautilusPreviewer' requested by ':1.276' (uid=1000 pid=23208 comm="/usr/bin/nautilus --gapplication-service")
Nov 20 22:07:58 blink dbus-daemon[824]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.381' (uid=1000 pid=23208 comm="/usr/bin/nautilus --gapplication-service")
Nov 20 22:07:58 blink dbus-daemon[2357]: [session uid=1000 pid=2357 pidfd=5] Successfully activated service 'org.gnome.NautilusPreviewer'
Nov 20 22:08:16 blink sudo[23269]:     humm : TTY=pts/0 ; PWD=/home/humm ; USER=root ; COMMAND=/usr/bin/apt install nautilus-extension-gnome-terminal nautilus-extension-gnome-terminal-dbgsym
Nov 20 22:08:25 blink dbus-daemon[2357]: [session uid=1000 pid=2357 pidfd=5] Activating service name='org.gnome.Nautilus' requested by ':1.19' (uid=1000 pid=2479 comm="/usr/bin/gnome-shell")
Nov 20 22:08:25 blink org.gnome.Nautilus[23351]: Connecting to org.freedesktop.Tracker3.Miner.Files
Nov 20 22:08:25 blink dbus-daemon[2357]: [session uid=1000 pid=2357 pidfd=5] Successfully activated service 'org.gnome.Nautilus'
Nov 20 22:08:25 blink org.gnome.Nautilus[23351]: MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:981: FINISHME: support more multi-planar formats with DRM modifiers
Nov 20 22:08:25 blink org.gnome.Nautilus[23351]: MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:949: FINISHME: support YUV colorspace with DRM format modifiers
Nov 20 22:08:25 blink dbus-daemon[2357]: [session uid=1000 pid=2357 pidfd=5] Activating service name='org.gnome.NautilusPreviewer' requested by ':1.280' (uid=1000 pid=23351 comm="/usr/bin/nautilus --gapplication-service")
Nov 20 22:08:25 blink dbus-daemon[2357]: [session uid=1000 pid=2357 pidfd=5] Successfully activated service 'org.gnome.NautilusPreviewer'
Nov 20 22:09:06 blink sudo[23440]:     humm : TTY=pts/0 ; PWD=/home/humm ; USER=root ; COMMAND=/usr/bin/apt install nautilus-extension-gnome-terminal
Nov 20 22:09:25 blink sudo[23522]:     humm : TTY=pts/0 ; PWD=/home/humm ; USER=root ; COMMAND=/usr/bin/apt install nautilus-*
nautilus_bug_log.txt (3,459 bytes)   

Activities

kali-bugreport

kali-bugreport

2025-11-20 21:50

reporter   ~0020957

Probably needs to be reported to the devs of that tool / extension instead.

daniruiz

daniruiz

2025-11-21 07:21

manager   ~0020958

Hello,
I've tested it in Kali Gnome with the latest updates and I'm unable to replicate it. If I click "Open in terminal" it opens gnome-terminal in the current folder or the clicked folder

hummingbird

hummingbird

2025-11-21 11:27

reporter   ~0020960

This machine is not fresh install, i'm using this machine since 2021, but recently i'm facing this issue. To reproduce the issue, you can follow this steps.

1) ─$ gnome-terminal --version

GNOME Terminal 3.58.0 using VTE 0.82.1 +BIDI +GNUTLS +ICU +SYSTEMD

2) $ gnome-terminal --help-all
Usage:
gnome-terminal [OPTION…] [-- COMMAND …]

Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options
--help-terminal Show terminal options
--help-window-options Show per-window options
--help-terminal-options Show per-terminal options

GTK+ Options
--class=CLASS Program class as used by the window manager
--name=NAME Program name as used by the window manager
--gtk-module=MODULES Load additional GTK+ modules
--g-fatal-warnings Make all warnings fatal

Options to open new windows or terminal tabs; more than one of these may be specified:
--window Open a new window containing a tab with the default profile
--tab Open a new tab in the last-opened window with the default profile

Window options; if used before the first --window or --tab argument, sets the default for all windows:
--show-menubar Turn on the menubar
--hide-menubar Turn off the menubar
--maximize Maximize the window
--full-screen Full-screen the window
--geometry=GEOMETRY Set the window size; for example: 80x24, or 80x24+200+200 (COLSxROWS+X+Y)
--role=ROLE Set the window role
--active Set the last specified tab as the active one in its window

Terminal options; if used before the first --window or --tab argument, sets the default for all terminals:
-e, --command Execute the argument to this option inside the terminal
--profile=PROFILE-NAME Use the given profile instead of the default profile
-t, --title=TITLE Set the initial terminal title
--working-directory=DIRNAME Set the working directory
--wait Wait until the child exits
--fd=FD Forward file descriptor
--zoom=ZOOM Set the terminal’s zoom factor (1.0 = normal size)

Application Options:
--load-config=FILE Load a terminal configuration file
--no-environment Do not pass the environment
--preferences Show preferences window
-p, --print-environment Print environment variables to interact with the terminal
-v, --verbose Increase diagnostic verbosity
-q, --quiet Suppress output
--display=DISPLAY X display to use

3) Create a file ~/.local/share/nautilus/scripts/Test-URI, with provided content then open folder Right click --> Scripts --> Test-URI

#!/bin/bash

echo "CURRENT_URI=$NAUTILUS_SCRIPT_CURRENT_URI" > /tmp/nautilus_uri_test.txt
echo "FILE_PATHS=$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" >> /tmp/nautilus_uri_test.txt

Output:
CURRENT_URI=file:///path/to/folder
FILE_PATHS=/path/to/folder/path_to_file

4) Now, try gnome terminal
$ gnome-terminal -working-directory=/path/to/folder or path_to_file

Outcome: Nothing but open in /home/<user>/ path

5) And try kgx
$ kgx --working-directory=/path/to/folder or path_to_file

Outcome: Open exactly where to open

6) Installed version in my environment
$ dpkg -l | grep nautilus
ii gir1.2-nautilus-4.1:amd64 49.1-2 amd64 libraries for nautilus components - gir bindings
ii gnome-sushi 46.0-2 amd64 sushi is a quick previewer for nautilus
ii libnautilus-extension4:amd64 49.1-2 amd64 libraries for nautilus components - runtime version
ii nautilus 49.1-2 amd64 file manager and graphical shell for GNOME
ii nautilus-data 49.1-2 all data files for nautilus
ii nautilus-extension-gnome-terminal:amd64 3.58.0-1kali1 amd64 GNOME terminal emulator application - Nautilus extension
ii nautilus-extension-gnome-terminal-dbgsym:amd64 3.58.0-1kali1 amd64 debug symbols for nautilus-extension-gnome-terminal
ii python3-nautilus 4.0.1-3 amd64 Python binding for Nautilus components (Python 3 version)

Thank you.

Issue History

Date Modified Username Field Change
2025-11-20 16:44 hummingbird New Issue
2025-11-20 16:44 hummingbird File Added: nautilus_bug_log.txt
2025-11-20 21:50 kali-bugreport Note Added: 0020957
2025-11-21 07:21 daniruiz Note Added: 0020958
2025-11-21 07:21 daniruiz Assigned To => daniruiz
2025-11-21 07:21 daniruiz Status new => assigned
2025-11-21 11:27 hummingbird Note Added: 0020960