make gvfs daemon relocatable
Submitted by Anselm Kruis
Assigned to gvf..@..e.bugs
Link to original bug (#678697)
Description
Created attachment 217106 Patch to make gvfs daemon relocatable
The the "mountable directory" is defined by the compile time constant MOUNTABLE_DIR. This makes it hard to distribute a binary of the gvfs daemon, that can be installed in different locations.
The attached patch enhances the daemon to adhere to the XDG_BASE_DIR specification. It looks for the first existing subdirectory "gvfs/mounts" of the system data directories. If you use an relative path as value of "Exec" within the *.mount files, the path will be resolved relative to the "mountable directory".
The patch is against gvfs version 1.10.1 because I use this particular version. It should be fairly simple to port it to a newer version.
Patch 217106, "Patch to make gvfs daemon relocatable":
gvfs-1.10.1-relative-path.patch
Version: 1.10.x