From: robk-tahoe Date: Wed, 11 Jun 2008 00:31:45 +0000 (-0700) Subject: macapp: changed to remove 'Tahoe' from .app name X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/flags/something?a=commitdiff_plain;h=004288173676e8acaa5f55c318f5dd8efb823503;p=tahoe-lafs%2Ftahoe-lafs.git macapp: changed to remove 'Tahoe' from .app name Change the build product from 'Allmydata Tahoe' to 'Allmydata' more inkeeping with the branding of the Allmydata product --- diff --git a/mac/setup.py b/mac/setup.py index de9b9794..7dbd8909 100644 --- a/mac/setup.py +++ b/mac/setup.py @@ -39,7 +39,7 @@ py2app_options = { } setup_args = { - 'name': 'Allmydata Tahoe', + 'name': 'Allmydata', 'description': 'The various parts of the Allmydata Tahoe system', 'author': 'Allmydata, Inc.', 'app': [ 'allmydata_tahoe.py' ], diff --git a/src/allmydata/gui/macapp.py b/src/allmydata/gui/macapp.py index 6e671200..38549220 100644 --- a/src/allmydata/gui/macapp.py +++ b/src/allmydata/gui/macapp.py @@ -166,7 +166,7 @@ class App(object): tahoe_path = path_candidate + '/tahoe' try: print 'trying to install "%s"' % (tahoe_path,) - bin_path = (sys.executable[:-6] + 'Allmydata Tahoe').replace(' ', '\\ ') + bin_path = (sys.executable[:-6] + 'Allmydata') script = TAHOE_SCRIPT % { 'exe': bin_path } f = file(tahoe_path, 'wb') f.write(script) @@ -192,7 +192,7 @@ MOUNT_ID = wx.NewId() class SplashFrame(wx.Frame): def __init__(self): - wx.Frame.__init__(self, None, -1, 'Allmydata Tahoe') + wx.Frame.__init__(self, None, -1, 'Allmydata') self.SetSizeHints(100, 100, 600, 800) self.SetIcon(amdicon.getIcon()) @@ -221,7 +221,7 @@ class SplashPanel(wx.Panel): self.sizer = wx.BoxSizer(wx.VERTICAL) - self.label = wx.StaticText(self, -1, 'Allmydata Tahoe') + self.label = wx.StaticText(self, -1, 'Allmydata') font = self.label.GetFont() font.SetPointSize(26) self.label.SetFont(font) @@ -238,7 +238,7 @@ class SplashPanel(wx.Panel): class MountFrame(wx.Frame): def __init__(self, app): - wx.Frame.__init__(self, None, -1, 'Allmydata Tahoe Mount Filesystem') + wx.Frame.__init__(self, None, -1, 'Allmydata Mount Filesystem') self.SetSizeHints(100, 100, 600, 800) self.SetIcon(amdicon.getIcon()) @@ -270,7 +270,7 @@ class MountPanel(wx.Panel): self.caps = self.find_dir_caps() - self.label = wx.StaticText(self, -1, 'Allmydata Tahoe Mount Filesystem') + self.label = wx.StaticText(self, -1, 'Allmydata Mount Filesystem') self.mnt_label = wx.StaticText(self, -1, 'Mount') self.cap_choice = wx.Choice(self, -1, (120, 64), choices=self.caps.keys()) root_dir = self.cap_choice.FindString('root_dir') @@ -339,12 +339,12 @@ class MountPanel(wx.Panel): def do_mount(self, cap_name, mountpoint): log.msg('do_mount(%r, %r)' % (cap_name, mountpoint)) log.msg('sys.exec = %r' % (sys.executable,)) - if not sys.executable.endswith('Tahoe.app/Contents/MacOS/python'): - log.msg("can't find tahoe.app: sys.executable = %r" % (sys.executable,)) - wx.MessageBox("Can't determine location of Allmydata Tahoe.app") + if not sys.executable.endswith('Allmydata.app/Contents/MacOS/python'): + log.msg("can't find allmydata.app: sys.executable = %r" % (sys.executable,)) + wx.MessageBox("Can't determine location of Allmydata.app") self.parent.parent.Show(False) return - bin_path = sys.executable[:-6] + 'Allmydata Tahoe' + bin_path = sys.executable[:-6] + 'Allmydata' log.msg('%r exists: %r' % (bin_path, os.path.exists(bin_path),)) foptions = [] @@ -406,7 +406,7 @@ class MacGuiApp(wx.App): def setup_dock_icon(self): self.tbicon = wx.TaskBarIcon() - #self.tbicon.SetIcon(amdicon.getIcon(), "Allmydata Tahoe") + #self.tbicon.SetIcon(amdicon.getIcon(), "Allmydata") wx.EVT_TASKBAR_RIGHT_UP(self.tbicon, self.on_dock_menu) def setup_app_menu(self, frame):