Thunar stopped mounting units in Fluxbox in Salix 15 XFCE

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

Thunar stopped mounting units in Fluxbox in Salix 15 XFCE

Post 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
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

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

Post 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!
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
User avatar
gapan
Salix Wizard
Posts: 6292
Joined: 6. Jun 2009, 17:40

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

Post by gapan »

Are you running fluxbox/thunar with dbus?
Image
Image
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

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

Post 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
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

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

Post 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.
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
User avatar
gapan
Salix Wizard
Posts: 6292
Joined: 6. Jun 2009, 17:40

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

Post by gapan »

Oooh, right! Why didn't I think of that? Thanks for posting the solution Pai Mei!
Image
Image
Post Reply