Xfce Forum

Sub domains
 

You are not logged in.

#1 2026-07-29 11:26:00

mustbeit
Member
Registered: 2024-08-05
Posts: 20
LinuxChrome 150.0

Thunar action open Terminal window under KDE(wayland)

Hi,

In Thunar(4.20.9) custom action you have Terminal which opens a Terminal window which path is the select folder.

A. This works perfect under Manjaro XFCE; the cmd in Thunar being:

exo-open --working-directory %f --launch TerminalEmulator

B. Now, I wish the same behaviour of Thunar under Manjaro KDE(latest), aka Wayland, plasma 6.7.3
TerminalEmulator being unreconized I tried:

exo-open --working-directory %f --launch konsole
exo-open --working-directory %f --launch /usr/bin/konsole

These FAIL to execute

Now if I try any of the following as custom cmd for Thunar :

/usr/bin/konsole %f
/usr/bin/konsole %d
/usr/bin/konsole %n

it opens a terminal window(KDE konsole), but which path is the PARENT folder of the selected folder.
In other words, if you have the path:

myPath/selectedDir

and in Thunar you right-click on the folder "selectedDir" to action "Terminal", it opens a terminal which path is "myPath" and not as expected and as under XFCE: "myPath/selectedDir"

Question
* what's the correct cmd for Thunar under KDE, if not
* is it a Thunar bug under KDE wayland, if not
* is it a KDE bug

Thanks

Last edited by mustbeit (2026-07-29 11:27:47)

Offline

#2 2026-07-29 16:24:39

daffyduck
Banned
Registered: 2026-06-25
Posts: 118
Windows 10Firefox 152.0

Re: Thunar action open Terminal window under KDE(wayland)

mustbeit wrote:

Now if I try any of the following as custom cmd for Thunar :

/usr/bin/konsole %f
/usr/bin/konsole %d
/usr/bin/konsole %n

it opens a terminal window(KDE konsole), but which path is the PARENT folder of the selected folder.

That's the right way to do it. Which folder "konsole" opens depends on the specification of "konsole". You should read the command-line format with "man konsole"

My guess (since I don't use konsole):
try with:

/usr/bin/konsole %d/.

Added later 20 min 16 s:
Also, here is a way to debug it, if you have xfce4-terminal installed,
as custom cmd for Thunar:

xfce4-terminal --hold  --title=%d   --execute   bash -c  -- echo  "See the title of this window"

or

xfce4-terminal  --hold  --execute   bash -c  -- echo  "expanded to: "%d

Last edited by daffyduck (2026-07-29 16:50:04)


^^^^^     &```&    ^^^^^^^^^^^^^
              .&_ oO_&-..--.            daffyduck
            ( __         -/..--'    Mark solved threads as [SOLVED] to make
               . ' -__- '            it easier for others to find solutions.

Offline

#3 2026-07-29 20:18:22

gogogadget
Member
From: EU
Registered: 2023-03-19
Posts: 71
LinuxFirefox 153.0

Re: Thunar action open Terminal window under KDE(wayland)

Hello,

mustbeit wrote:

B. Now, I wish the same behaviour of Thunar under Manjaro KDE(latest), aka Wayland, plasma 6.7.3
TerminalEmulator being unreconized I tried:

    exo-open --working-directory %f --launch konsole
    exo-open --working-directory %f --launch /usr/bin/konsole

These FAIL to execute

exo-open is made for the Xfce environment, I doubt it works in another desktop.

Ghostty is my terminal emulator and my custom action for opening the selected folder in a terminal is like this :

ghostty --working-directory=%F

EndeavourOS
Xfce+gtk3-classic (no CSD)+Picom

Offline

#4 2026-07-29 22:25:06

mustbeit
Member
Registered: 2024-08-05
Posts: 20
LinuxChrome 150.0

Re: Thunar action open Terminal window under KDE(wayland)

gogogadget wrote:

exo-open is made for the Xfce environment, I doubt it works in another desktop.

Fair enough

ghostty --working-directory=%F

/usr/bin/konsole --help
....
--workdir <dir>            Set the initial working directory of the new tab
                             or window to 'dir'
....

Working synthax is:

/usr/bin/konsole --workdir=%f

Thanks

Last edited by mustbeit (2026-07-29 22:29:47)

Offline

#5 2026-07-29 22:32:58

daffyduck
Banned
Registered: 2026-06-25
Posts: 118
Windows 10Firefox 151.0

Re: Thunar action open Terminal window under KDE(wayland)

This one works on my computer:

xfce4-terminal    --working-directory=%f

^^^^^     &```&    ^^^^^^^^^^^^^
              .&_ oO_&-..--.            daffyduck
            ( __         -/..--'    Mark solved threads as [SOLVED] to make
               . ' -__- '            it easier for others to find solutions.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 543.09 KiB (Peak: 543.71 KiB) ]