Difference between revisions of "GVFS"

From ArchWiki
Jump to: navigation, search
m (Thestinger moved page Gvfs to GVFS: proper case)
(rw)
Line 14: Line 14:
 
  $ loginctl show-session $XDG_SESSION_ID
 
  $ loginctl show-session $XDG_SESSION_ID
  
This should contain {{ic|1=Remote=no}} and {{ic|1=Active=yes}} in the output. See [[xinitrc#Preserving the session]] for troubleshooting info.
+
This should contain {{ic|1=Remote=no}} and {{ic|1=Active=yes}} in the output. See [[xinitrc#Preserving the session]] for troubleshooting if it does not.
  
 
A dbus session should also be started along with X, in a way that exports a single {{ic|DBUS_SESSION_BUS_ADDRESS}} for every application in your session. The simplest way to do this is if you don't use a desktop environment is to copy the code from {{ic|/etc/skel/.xinitrc}} that runs files in {{ic|/etc/X11/xinit/xinitrc.d}} to your {{ic|~/.xinitrc}}, and avoid using {{ic|dbus-launch}} or {{ic|ck-launch-session}}.
 
A dbus session should also be started along with X, in a way that exports a single {{ic|DBUS_SESSION_BUS_ADDRESS}} for every application in your session. The simplest way to do this is if you don't use a desktop environment is to copy the code from {{ic|/etc/skel/.xinitrc}} that runs files in {{ic|/etc/X11/xinit/xinitrc.d}} to your {{ic|~/.xinitrc}}, and avoid using {{ic|dbus-launch}} or {{ic|ck-launch-session}}.

Revision as of 06:54, 1 November 2012

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.

Note: You must be using systemd as your init system for it to work.

Getting mounting working

First, make sure you have a valid local session within X:

$ loginctl show-session $XDG_SESSION_ID

This should contain Remote=no and Active=yes in the output. See xinitrc#Preserving the session for troubleshooting if it does not.

A dbus session should also be started along with X, in a way that exports a single DBUS_SESSION_BUS_ADDRESS for every application in your session. The simplest way to do this is if you don't use a desktop environment is to copy the code from /etc/skel/.xinitrc that runs files in /etc/X11/xinit/xinitrc.d to your ~/.xinitrc, and avoid using dbus-launch or ck-launch-session.

Troubleshooting

There is a known bug that causes duplicate entries for drives.