can't see network filesystems on dirdialog, just local ones

5 views
Skip to first unread message

Notch-1

unread,
Oct 9, 2009, 12:49:56 PM10/9/09
to wxPython-users
dialog = wx.DirDialog(None)
if dialog.ShowModal() == wx.ID_OK:
self.dst = dialog.GetPath()
dialog.Destroy()

the dialog works fine, BUT i can't see any network mounted filesystem
(while on the filemanager there are some..), how to solve this?
i'm using nautilus on gnome
thank you

Robin Dunn

unread,
Oct 9, 2009, 2:29:12 PM10/9/09
to wxpytho...@googlegroups.com

Are they actually mounted at the unix level or are they just Gnome
pseudo file systems (or whatever they are called)? IOW, can you go to a
command line in a terminal and cd to the network filesystem's folder?


--
Robin Dunn
Software Craftsman
http://wxPython.org

Notch-1

unread,
Oct 9, 2009, 2:39:32 PM10/9/09
to wxPython-users
From mount i got only this:
gvfs-fuse-daemon on /home/notch-1/.gvfs type fuse.gvfs-fuse-daemon
(rw,nosuid,nodev,user=notch-1)

that is there since the boot (uneffected by mounting/unmounting
network filesystems).
I can access /home/notch-1/.gvfs/ (this seems the mountpoint for all
network filesystems) BUT not from dirdialog, only from nautilus (or
the shell off course)
I can cd on them, but i can't see them with mount command, so the
answer to your question is tricky...


Robin Dunn ha scritto:

Cody Precord

unread,
Oct 9, 2009, 2:54:48 PM10/9/09
to wxpytho...@googlegroups.com
Hello,

On Fri, Oct 9, 2009 at 1:39 PM, Notch-1 <not...@gmail.com> wrote:
>
> From mount i got only this:
> gvfs-fuse-daemon on /home/notch-1/.gvfs type fuse.gvfs-fuse-daemon
> (rw,nosuid,nodev,user=notch-1)

I have seen this too with GVFS. As a work around you can get to the
mounts by accessing the path (~/.gvfs/).


Cody

Notch-1

unread,
Oct 9, 2009, 3:19:55 PM10/9/09
to wxPython-users
As i said, i can access /home/notch-1/.gvfs/ BUT not from the dialog
created by dirdialog, only from nautilus or the system shell.
From dirdialog i can only see an empty directory, when i go to
~/.gvfs/

Anyway now this seems to be changed, i can see my mounted network
filesystems in ~/.gvfs/ with dirdialog, don't ask what i changed :D
Any chances to get the full standard gnome open directory dialog?
thanks

Cody Precord ha scritto:

Robin Dunn

unread,
Oct 9, 2009, 4:36:51 PM10/9/09
to wxpytho...@googlegroups.com
On 10/9/09 12:19 PM, Notch-1 wrote:

> Any chances to get the full standard gnome open directory dialog?
> thanks

It should be using the default GTK dialog if the running GTK version is
new enough. wxGTK doesn't link to any gnome libraries so if gnome has
something different I don't think it can be used.

Notch-1

unread,
Oct 14, 2009, 10:18:38 AM10/14/09
to wxPython-users
Another great workaround thanks to chrisccoulson and hyperair on
#ubuntu-devel:

import gio
print gio.File(PATH).get_path()

this will translate all ftp://, sftp://, ftps://, dav://, davs://, smb://
(, etc...) mounted network filesystems correctly.
reference: http://library.gnome.org/devel/gio/stable/

please note that this is not a solution for this specific issue, but
since is still very related with this thread, i'm posting it anyway
Reply all
Reply to author
Forward
0 new messages