Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] How to set up volume mounting as user (Read 124 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] How to set up volume mounting as user

Hi to all,

I have installed artixlinux and I'm migrating from devuan.

I have installed openbox and I can't get the usb keys appear in the file manager devices menu (pcmanfm and thunar).
I have managed to make spacefm work with pmount, but spacefm is no longer mantained (also  pcmanfm seem to be unmaintained).

Probaly It lacks of some udev rules, by I have foundo nothing related to openrc so I'm lost.


Anyone has some hints.

Best Regards

Carlo D. (onekk)

Re: How to set up volume mounting as user

Reply #1
Do you have polkit installed?

Code: [Select]
pacman -S --needed polkit

After installing polkit, reboot the computer and check if the volumes appear in thunar or pcmanfm.

The rules reside in /etc/polkit-1/rules.d/99-artix.rules

Re: How to set up volume mounting as user

Reply #2
I have polkit installed, how to check if the rules are applied, or how to check what events are triggered?

dmesg tell me the usb key is inserted and with pmount i could mount it and acces the /media/ directory on which have changed the permissions to root:storage and my username is in the storage group.

Regards

Carlo D.

Re: How to set up volume mounting as user

Reply #3
Try also installing gvfs
Code: [Select]
pacman -S --needed gvfs

It is an optional dependency for both thunar and pcmanfm

Re: How to set up volume mounting as user

Reply #4
also gvfs is installed, i suspect something happens  at low level.

dmesg says the usb key is detected.

pmount is mounting the device and spacefm correctly list it in the device "panel".

so at low level everything is working.

d-bus seems to be running at least the init messages says so.

from what i have guessed out from searching around polkit is working on top of d-bus.

so between the low level and the "mount notification" something is happening, or "not hsppening"

I have a udev rule that triggers pmount to mount the media, maybe I have to add some udev rule?

UPDATE:

Some work on solving the problem, the problem maybe an udev rule, i have done a udev rule that detect the insertion of the usb and all is working, i.e. the usb is detected when inserted and when extracted.

working on some other rules around.


Regards

Carlo D.

Re: How to set up volume mounting as user

Reply #5
I have find a way, simply and quick.

I have created a file .xprofile in the user directory with this content

Code: [Select]
## Ensure that the D-Bus Communication System is running properly to fix
## File management, authentication, and other essential system processes

if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
    eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi


## Ensure that GTK themes are applied uniformly in the Desktop Environment

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"


This will solve also the trash not working properly.

Hint found on https://www.linuxsecrets.com/ that seem related to Manjaro, all is  working now.

Another method is to installa  udiskie

With udiskie you will  have a systray icon in which manage the usb key inserted and after mounted pcmanfm will show all the usb-key correctly.

Re: [SOLVED] How to set up volume mounting as user

Reply #6
Some hints could be found on:

This site

Following the links it will tell how to solve some problems running a Window Manager instead of a Desktop Environment