You are not logged in.

#1 2017-06-03 00:42:55

Jorge_Alberto
Member
Registered: 2017-05-31
Posts: 9

Thunar option "Open terminal here" not working

Wel, I don't know if it is an issue or expected behavior for Bunsenlabs, but I haven't seen this hapen on #!: When I try the option "Open terminal here" in a folder, it only works if the whole path has no spaces or other uncommon characters. In #!, the folders could be named anything (truly, anything), and this option would always find the right path. Can someone help me to have that again?

Offline

#2 2017-06-03 00:53:40

Jorge_Alberto
Member
Registered: 2017-05-31
Posts: 9

Re: Thunar option "Open terminal here" not working

Nevermind, I just accidentaly found a solution. If anyone is having the same issue, I just did this: In the "Custom actions" window, I just edited "Open terminal here", changing the command from

sh -c 'cd %f;x-terminal-emulator' 

to

x-terminal-emulator

And it worked like a charm.

Last edited by Jorge_Alberto (2017-06-03 00:54:08)

Offline

#3 2017-06-03 15:14:16

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,741

Re: Thunar option "Open terminal here" not working

What i have is (I think that is the default actually)

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

and then I have selected rxvt-unicode with exo-preferred-applications. And it is also working with s p a c e s.

Last edited by brontosaurusrex (2017-06-03 15:19:30)

Online

#4 2017-06-04 08:18:05

ector1935
Member
Registered: 2017-05-03
Posts: 240

Re: Thunar option "Open terminal here" not working

Try with this command, it works for me!

sh -c 'cd % f F; gksudo x-terminal-emulator'

2017-06-04-10-19-02_scrot.th.png

Last edited by ector1935 (2017-06-04 08:21:36)

Offline

#5 2017-06-05 03:08:17

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,560
Website

Re: Thunar option "Open terminal here" not working

This is what we ship with BunsenLabs at the moment, same for Hydrogen and Helium:

# open terminal here:
sh -c 'cd %f;x-terminal-emulator'

# open root terminal here:
sh -c 'cd %f;gksudo x-terminal-emulator'

However, I've just confirmed that on Debian Jessie the above commands fail when run inside a directory with spaces in the filepath. (I also noticed previously that the "root" command wasn't working properly on Stretch.) A fix, for jessie, is to simply remove the apostrophes! (Thunar generally takes care of quoting in filepaths with %f and %F.)

I'll test the above fix on Stretch and report back.

btw, @ector1935 are you sure this part of your command is right?

cd % f F;

The space between % and f, and the extra F, look wrong to me.

Last edited by johnraff (2017-06-05 03:10:48)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#6 2017-06-05 07:48:28

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,741

Re: Thunar option "Open terminal here" not working

Perhaps for a new thread, but something like this (and 'all' possible variations with quotes)

urxvt -e bash -c 'echo %F && sleep 3'

FAILS with paths/files with spaces (Debian Stretch, Thunar 1.6.11).

Last edited by brontosaurusrex (2017-06-05 08:00:19)

Online

#7 2017-06-05 13:16:15

ector1935
Member
Registered: 2017-05-03
Posts: 240

Re: Thunar option "Open terminal here" not working

johnraff wrote:

This is what we ship with BunsenLabs at the moment, same for Hydrogen and Helium:

# open terminal here:
sh -c 'cd %f;x-terminal-emulator'

# open root terminal here:
sh -c 'cd %f;gksudo x-terminal-emulator'

However, I've just confirmed that on Debian Jessie the above commands fail when run inside a directory with spaces in the filepath. (I also noticed previously that the "root" command wasn't working properly on Stretch.) A fix, for jessie, is to simply remove the apostrophes! (Thunar generally takes care of quoting in filepaths with %f and %F.)

I'll test the above fix on Stretch and report back.

btw, @ector1935 are you sure this part of your command is right?

cd % f F;

The space between % and f, and the extra F, look wrong to me.

sorry,for the error F,i was wrong to write, But it works both with space,and without!

sh -c 'cd % f; gksudo x-terminal-emulator'

Last edited by ector1935 (2017-06-05 13:17:19)

Offline

Board footer

Powered by FluxBB