From 4785299980849f7c84991edd05264de83d220f14 Mon Sep 17 00:00:00 2001 From: robk-tahoe Date: Thu, 16 Oct 2008 09:30:52 -0700 Subject: [PATCH] gui/macapp: minor bugfixes though it seemed to work before the 'fstype' passed to fuse of 'allmydata' was today throwing errors that len(fstype) must be at most 7. fixed a typo in changes to 'mount_filesystem()' args bumped the delay between mounting a filesystem and 'open'ing it in Finder to 4s, as it seems to take a little longer to mount now the client and server fuse processes need to coordinate. --- src/allmydata/gui/macapp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/allmydata/gui/macapp.py b/src/allmydata/gui/macapp.py index 70949187..5b39d8f5 100644 --- a/src/allmydata/gui/macapp.py +++ b/src/allmydata/gui/macapp.py @@ -466,7 +466,7 @@ class MacGuiApp(wx.App): mountpoint = os.path.join(self.nodedir, 'mnt/__auto__') if not os.path.isdir(mountpoint): os.makedirs(mountpoint) - self.mount_filesystem(self.nodedir, 'tahoe', mountpoint, 'Allmydata') + self.mount_filesystem('tahoe', mountpoint, 'Allmydata') def webopen(self, alias=None): log.msg('webopen: %r' % (alias,)) @@ -500,7 +500,7 @@ class MacGuiApp(wx.App): # figure out options for fuse_main foptions = [] foptions.append('-olocal') # required to display in Finder on leopard - foptions.append('-ofstypename=allmydata') # shown in 'get info' + #foptions.append('-ofstypename=allmydata') # shown in 'get info' if display_name is None: display_name = alias_name foptions.append('-ovolname=%s' % (display_name,)) @@ -529,7 +529,7 @@ class MacGuiApp(wx.App): # open finder, if configured to do so if self.config['auto-open']: - wx.FutureCall(2048, self.sync_run_cmd, ['/usr/bin/open', mountpoint]) + wx.FutureCall(4096, self.sync_run_cmd, ['/usr/bin/open', mountpoint]) return True def unmount_filesystems(self): -- 2.45.2