Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If Nautilus is used to drop a file on a samba share into an app, then the app will see: "SMB://server/share/file"

How is the app supposed to detect real, working gvfs path of that file ? different Ubuntu versions have different paths to the gvfs folder.

is there an API, or conversion script, or anything like that, that could translate that into the ull GVFS path ?

share|improve this question
What do you mean "full GVFS path" exactly? The smb://host/share/file URL is the path that apps using GVFS for file I/O would use to access the file. – dobey Nov 6 '12 at 14:21
up vote 2 down vote accepted

Use GIO GVfs, for example in Python:

#!/usr/bin/env python
from gi.repository import Gio


print path
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.