Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-10-02 18:57:42

sebastian-65
Member
Registered: 2022-01-12
Posts: 14

Thunar - command to open new window

I'm trying to migrate to thunar from pcmanfm. I have a script that opens file manager in new window when called from another desktop. Is there any way to do that with thunar?

For pacmanfm it's easy as pacmanfm -n, however I don't have a clue how to force opening new thunar window / instance.

Offline

#2 2023-10-02 21:02:00

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 528

Re: Thunar - command to open new window

thunar

Will open a thunar instance even if there is already one open.


Siduction
Debian Sid
Xfce 4.18

Offline

#3 2023-10-03 11:40:05

sebastian-65
Member
Registered: 2022-01-12
Posts: 14

Re: Thunar - command to open new window

I have thunar 4.18.7 (Xfce 4.18) and it just adds a new tab inside existing window, at least for me.

Offline

#4 2023-10-03 11:53:56

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 528

Re: Thunar - command to open new window

Have a look at the Thunar settings

Thunar>>edit>>preferences>>behaviour tab>>tabs and windows

I have everything unchecked


Siduction
Debian Sid
Xfce 4.18

Offline

#5 2023-10-04 09:01:03

sebastian-65
Member
Registered: 2022-01-12
Posts: 14

Re: Thunar - command to open new window

What my script does is, that opens new tabs of file manager if file manager is present on the same desktop, and opens the new instance if file manager is on another desktop.

Disabling the option Open new thunar instances as tabs will enable the first case while excluding the second or vice versa. That's why some command parameter would be handy.

Thank you for answers.

Offline

#6 2023-10-04 11:18:54

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 528

Re: Thunar - command to open new window

Well it appears that you can only do one or the other. Either open in tabs or a new instance but not both. I'm not sure what to suggest unless someone else can provide more info.


Siduction
Debian Sid
Xfce 4.18

Offline

#7 2023-10-04 15:48:45

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Thunar - command to open new window

It doesn't look like there is a parameter to do this, but with some xfconf magic, you can achieve the desired result.

Open new thunar folder in tab in existing window:

xfconf-query -c thunar -p /misc-open-new-window-as-tab -s true && thunar ~/Downloads

Open new thunar folder in tab in new window:

xfconf-query -c thunar -p /misc-open-new-window-as-tab -s false && thunar ~/Downloads

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#8 2023-10-04 16:36:04

sebastian-65
Member
Registered: 2022-01-12
Posts: 14

Re: Thunar - command to open new window

ToZ, you've saved my day! Works perfectly. Thank you guys.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 536.39 KiB (Peak: 537.23 KiB) ]