GNOME Shell Fix the Open in Terminal Option

From WikiMLT

I'm writ­ing this guide in the time set­ting up Kali Lin­ux as my pri­ma­ry desk­top op­er­at­ing sys­tem, but this hap­pens to me al­so with oth­er dis­tri­b­u­tions which have mul­ti­ple desk­top en­vi­ron­ments.

The is­sue is that: When I want to open a ter­mi­nal win­dow from the con­text menu of the desk­top with­in GNOME noth­ing hap­pen­ing.

De­bug the Is­sue

Open a ter­mi­nal win­dow run the fol­low­ing com­mand in­side and keep it open, then use the op­tion Open in Ter­mi­nal – Screen 1.

sudo journalctl /usr/bin/gnome-shell -f -o cat
DING: x-terminal-emulator: unrecognized option '--working-directory=/home/<user>/Desktop'
DING: QTerminal 0.16.1
DING: Usage: qterminal [OPTION]...
DING:   -d,  --drop               Start in "dropdown mode" (like Yakuake or Tilda)
DING:   -e,  --execute <command>  Execute command instead of shell
DING:   -h,  --help               Print this help
DING:   -p,  --profile            Load qterminal with specific options
DING:   -v,  --version            Prints application version and exits
DING:   -w,  --workdir <dir>      Start session with specified work directory
Screen 1. GNOME Shell debug why Open in Terminal does not work at the desktop.
Screen 1. GNOME Shell de­bug why Open in Ter­mi­nal does not work at the desk­top. Screen 1. GNOME Shell debug why Open in Terminal does not work at the desktop.

The out­put of the com­mand shown above lead me to the as­sump­tion the de­fault Gnome's ex­ten­sion Desk­top Icons NG, which gen­er­ates the con­text menu, doesn't han­dle my de­fault ter­mi­nal ap­pli­ca­tion cor­rect­ly and in the same time this ap­pli­ca­tion isn't GNOME Ter­mi­nal.

The So­lu­tion

The so­lu­tion that I've ap­plied in this cer­tain case was to switch my de­fault ter­mi­nal em­u­la­tor ap­pli­ca­tion to GNOME Ter­mi­nal.

sudo update-alternatives --config x-terminal-emulator
There are 2 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).

  Selection    Path                             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/qterminal                40        auto mode
  1            /usr/bin/gnome-terminal.wrapper   40        manual mode
  2            /usr/bin/qterminal                40        manual mode

Press <enter> to keep the current choice[*], or type selection number: 1 [Press Enter]

Ref­er­ences