Difference between revisions of "GVFS"

From ArchWiki
Jump to: navigation, search
m (Tips: using dbus-launch is deprecated - replaced with link to General Troubleshooting#Session permissions)
Line 26: Line 26:
== Tips ==
== Tips ==
GVFS needs [[dbus]] to work well. (replace "awesome" with the window manager of your choice)
GVFS needs [[dbus]] to work well. See [[General Troubleshooting#Session permissions]] for details.
{{hc|$ cat ~/.xinitrc|
exec dbus-launch awesome

Revision as of 11:55, 8 August 2013

GVFS is the virtual filesystem for the GNOME desktop, which allows mounting local and remote filesystems as a user along with trash support. It is also used by file managers like Thunar.


The gvfs package needs to be installed, along with polkit-gnome for the polkit rules.

It requires dbus.

GVFS without root password

In file managers (e.g. Thunar), when you try to mount a drive, you might see that you need to enter the root password to continue every single time you want to mount and unmount a drive. This can be bypassed by setting a polkit rule.

In the directory /usr/share/polkit-1/rules.d, create this file named 10-drives.rules:

polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.udisks2.") == 0){ 
       return polkit.Result.YES;

Drives will now mount without any intervention from you. If you need to specify which users can perform this action or other restrictions, refer to polkit manual page.


GVFS needs dbus to work well. See General Troubleshooting#Session permissions for details.