Difference between revisions of "GVFS"

From ArchWiki
Jump to: navigation, search
(clean up link)
(GVFS without root password)
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:File systems]]
 
[[Category:File systems]]
 +
[[ru:GVFS]]
 
[[Wikipedia:GVFS|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]].
 
[[Wikipedia:GVFS|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]].
  
Line 6: Line 7:
 
The {{pkg|gvfs}} package needs to be installed, along with {{pkg|polkit-gnome}} for the polkit rules.
 
The {{pkg|gvfs}} package needs to be installed, along with {{pkg|polkit-gnome}} for the polkit rules.
  
==Troubleshooting==
+
==GVFS without root password==
  
See [[General Troubleshooting#Session permissions]] if you have any issues with automounting or permissions.
+
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.
  
There is a [https://bugs.archlinux.org/task/32325 known bug] that causes duplicate entries for drives.
+
In the directory {{ic|/usr/share/polkit-1/rules.d}}, create this file named {{ic|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, there is info in {{ic|man polkit}}.

Revision as of 14:05, 23 January 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.

Installation

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

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, there is info in man polkit.