You are not logged in.
Pages: 1
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
thunar
Will open a thunar instance even if there is already one open.
Siduction
Debian Sid
Xfce 4.18
Offline
I have thunar 4.18.7 (Xfce 4.18) and it just adds a new tab inside existing window, at least for me.
Offline
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
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
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
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
ToZ, you've saved my day! Works perfectly. Thank you guys.
Offline
Pages: 1
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 536.39 KiB (Peak: 537.23 KiB) ]