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.
This commit is contained in:
robk-tahoe 2008-10-16 09:30:52 -07:00
parent 4bc57f19c9
commit 4785299980

View File

@ -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):