Skip to content

A button to toggle split view orientation --- doesn't work in 4.18

After posting about this on the forum, ToZ asked me to open an issue for it.

Now that thunar has a split view, I wanted to enable switching between vertical/horizontal splits. I found the hidden setting for it. Then learned that rather than using --set true or --set false you can just use -T to toggle. Perfect.

In the file ~/.config/Thunar/uca.xml I create a custom action like this:

<action>
		<icon>rotation-allowed</icon>
		<name>⮔ toggle split orientation</name>
		<submenu/>
		<command>xfconf-query --channel thunar --property /misc-vertical-split-pane --create --type bool -T</command>
		<description>switch between horizontal/vertical split</description>
		<range>*</range>
		<patterns>*</patterns>
		<directories/>
		<audio-files/>
		<image-files/>
		<other-files/>
		<text-files/>
		<video-files/>
</action>

It can be activated successfully via the context menu or an assigned keyboard shortcut. Yay! Mission basically accomplished.

Problems:

  1. Cannot be activated from the toolbar. It can be added to the toolbar and shows up as expected. Clicking has no discernible effect. If I launch thunar from the command line there is no output. Using the monitor option:
xfconf-query --channel thunar --property /misc-vertical-split-pane --create --type bool --monitor

shows no effect when  my button is pressed. Is the toolbar limited in what it can do?

  1. The change takes effect  in all thunar windows. Is there a way to limit to only a specific window? I don't find a way to create separate Thunar sessions.

And then ToZ adds:

For me, it doesn't work on 4.18.10 either, but it does on the 4.19 branch. Maybe a bug report to get it fixed in the 4.18 branch?

I am using extra/thunar 4.18.10-1 via manjaro repos. I did make an attempt at upgrading to aur/thunar-devel 4.19.2-1 but it failed due to conflicts. I'm not generally using the dev branches and today isn't the day I switch.

Not the end of the world but would be nice. :)