https://wiki.archlinux.org/api.php?action=feedcontributions&user=Cleanerkid&feedformat=atomArchWiki - User contributions [en]2024-03-28T11:01:07ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=GVFS&diff=264679GVFS2013-06-29T10:48:19Z<p>Cleanerkid: /* Tips */</p>
<hr />
<div>[[Category:File systems]]<br />
[[ru:GVFS]]<br />
[[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]].<br />
<br />
== Installation ==<br />
<br />
The {{Pkg|gvfs}} package needs to be [[pacman|installed]], along with {{Pkg|polkit-gnome}} for the polkit rules.<br />
<br />
It requires [[dbus]].<br />
<br />
== GVFS without root password ==<br />
<br />
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.<br />
<br />
In the directory {{ic|/usr/share/polkit-1/rules.d}}, create this file named {{ic|10-drives.rules}}:<br />
<br />
polkit.addRule(function(action, subject) {<br />
if (action.id.indexOf("org.freedesktop.udisks2.") == 0){ <br />
return polkit.Result.YES;<br />
}<br />
}<br />
);<br />
<br />
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.<br />
<br />
== Tips ==<br />
<br />
GVFS needs [[dbus]] to work well.<br />
<br />
{{hc|$ cat ~/.xinitrc|<br />
exec dbus-launch awesome<br />
}}</div>Cleanerkid