Difference between revisions of "GVFS"

From ArchWiki
Jump to: navigation, search
(added related articles. changed advised agent from polkit-gnome to lxpolkit as the former no longer works for most environments)
Line 1: Line 1:
 
[[Category:File systems]]
 
[[Category:File systems]]
 
[[ru:GVFS]]
 
[[ru:GVFS]]
 +
{{Related articles start}}
 +
{{Related|Polkit}}
 +
{{Related|File_manager_functionality}}
 +
{{Related articles end}}
 
[[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]].
  
 
== Installation ==
 
== Installation ==
  
The {{Pkg|gvfs}} package needs to be [[pacman|installed]], along with {{Pkg|polkit-gnome}} for the polkit rules.
+
The {{Pkg|gvfs}} package needs to be [[pacman|installed]], along with a suitable polkit authentication agent. For those who use desktop environments such as [[Xfce]] which do not provide an authentication agent it as advised that you use {{Pkg|lxpolkit}}. Be aware that {{Pkg|polkit-gnome}} now only works in [[GNOME Flashback]]. Make sure that the agent is started at login See your desktop environment's wiki page and [[Autostarting]] for more information. For further details on authentication agents, see [[Polkit#Authentication agents]].
 
+
Make sure the authentication agent provided by {{Pkg|polkit-gnome}} is autostarted as described in [[Polkit#Authentication agents]].
+
  
 
== GVFS without root password ==
 
== GVFS without root password ==

Revision as of 09:34, 20 December 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 a suitable polkit authentication agent. For those who use desktop environments such as Xfce which do not provide an authentication agent it as advised that you use lxpolkit. Be aware that polkit-gnome now only works in GNOME Flashback. Make sure that the agent is started at login See your desktop environment's wiki page and Autostarting for more information. For further details on authentication agents, see Polkit#Authentication agents.

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.