Difference between revisions of "GVFS"

From ArchWiki
Jump to: navigation, search
(change stub to merge request)
(12 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
[[Category:File systems]]
 
[[Category:File systems]]
 
[[ru:GVFS]]
 
[[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]].
+
{{Related articles start}}
 +
{{Related|Polkit}}
 +
{{Related|File manager functionality}}
 +
{{Related articles end}}
  
==Installation==
+
{{Merge|File manager functionality|No important information, too short for a separate article.|Talk:File manager functionality#Udiskie}}
  
The {{pkg|gvfs}} package needs to be installed, along with {{pkg|polkit-gnome}} for the polkit rules.
+
[[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]].
 
+
==GVFS without root password==
+
  
In 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.
+
== Installation ==
  
In the directory {{ic|/usr/share/polkit-1/rules.d}}, create this file named {{ic|10-drives.rules}}:
+
The {{Pkg|gvfs}} package needs to be [[pacman|installed]], along with a suitable [[Polkit#Authentication agents|polkit authentication agent]].
  
polkit.addRule(function(action, subject) {
+
== GVFS without root password ==
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}}.
+
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 as shown in [[Polkit#Allow mounting a filesystem on a system device]].

Revision as of 03:04, 29 December 2013

Merge-arrows-2.pngThis article or section is a candidate for merging with File manager functionality.Merge-arrows-2.png

Notes: No important information, too short for a separate article. (Discuss in Talk:File manager functionality#Udiskie)
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.

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 as shown in Polkit#Allow mounting a filesystem on a system device.