Page 1 of 1

Thunar stopped mounting units in Fluxbox in Salix 15 XFCE

Posted: 14. Apr 2024, 14:31
by Pai Mei
Hi everyone!

I'm using Salix 15.0 XFCE, and installed Fluxbox using Gslapt.
It was mounting my units in Thunar (when I click on the shortcuts in the left panel) but for some reason it stopped, showing no error message.
So I thought that was a polkit permission issue, and tried in a terminal:

Code: Select all

udisksctl mount -b /dev/sdb6
them it mounts my unit.
When I click to unmount (in Thunar left panel), it works, but after when I click to mount, it doesn't mount it.

What could be problem?

Thanks in advance!

PS: Sorry for my english - I'm not a fluent speaker

Re: Thunar stopped mounting units in Fluxbox in Salix 15 XFCE

Posted: 14. Apr 2024, 15:34
by Pai Mei
In time :

When I think about a polkit permission issue, I created the file /etc/polkit-1/rules.d/10-udisks2.rules with:

Code: Select all

// Allow udisks2 to mount devices without authentication
// for users in the “wheel” group.
polkit.addRule(function(action, subject) {
if ((action.id == “org.freedesktop.udisks2.filesystem-mount-system” ||
action.id == “org.freedesktop.udisks2.filesystem-mount”) &&
subject.isInGroup(“wheel”)) {
return polkit.Result.YES;
}
});
But it doesn't work with the units in Thunar (doesn't mount/show any error message).

Any hints?

Thanks in advance!

Re: Thunar stopped mounting units in Fluxbox in Salix 15 XFCE

Posted: 15. Apr 2024, 11:52
by gapan
Are you running fluxbox/thunar with dbus?

Re: Thunar stopped mounting units in Fluxbox in Salix 15 XFCE

Posted: 15. Apr 2024, 22:25
by Pai Mei
Yes, my /usr/bin/startfluxbox contains:

Code: Select all

# Start DBUS session bus:
if [ -z "\$DBUS_SESSION_BUS_ADDRESS" ]; then
   eval \$(dbus-launch --sh-syntax --exit-with-session)
fi

[SOLVED] Thunar stopped mounting units in Fluxbox in Salix 15 XFCE

Posted: 29. Nov 2024, 22:05
by Pai Mei
Sorry to necrobump this topic, but I found the solution.

After reading this page:
https://wiki.archlinux.org/title/File_m ... leshooting

I realized that I need a polkit agent. So I read this page https://wiki.archlinux.org/title/Polkit ... ion_agents and see that in Salix I have installed polkit-gnome.

And I found in the internet this page https://wiki.gentoo.org/wiki/Fluxbox#En ... ugh_polkit that shows how to enable the polkit agent in ~/.fluxbox/startup. So I add the following line to the ~/.fluxbox/startup :
# Polkit mount agent
/usr/libexec/polkit-gnome-authentication-agent-1 &
And the problem is solved.

Solved also another problem: when I type in a terminal gparted it gives me the error:
$ gparted
Error executing command as another user: No authentication agent found
Thanks in advance for maintain this topic open.

Re: Thunar stopped mounting units in Fluxbox in Salix 15 XFCE

Posted: 29. Nov 2024, 22:41
by gapan
Oooh, right! Why didn't I think of that? Thanks for posting the solution Pai Mei!