X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=browser-switchboard;h=e922ceebb8d3ea043249e0123d21a9193e3153f0;hp=71a9bbf81c484a1559916cf6e11c3c203597fe29;hb=025acd684c44fc640b792c7bfb565261193ea875;hpb=f2739d4bfd238bc882e34d918ec3bfe26a47fb9d;ds=inline diff --git a/browser-switchboard b/browser-switchboard index 71a9bbf..e922cee 100755 --- a/browser-switchboard +++ b/browser-switchboard @@ -130,9 +130,9 @@ class BrowserLauncher: elif default_browser == "": # If default_browser is empty, use Tear as the default if # installed, otherwise use MicroB - if os.access("/usr/bin/tear", X_OK): + if os.access("/usr/bin/tear", os.X_OK): self.LaunchBrowser = self.LaunchTear - else + else: self.LaunchBrowser = self.LaunchMicroB else: print "Unknown default_browser %s, using default" % default_browser @@ -191,10 +191,14 @@ def readconfigfile(signalnum=None, frame=None): # read configuration from the config file, if available try: execfile(os.getenv("HOME", "/home/user") + "/.config/browser-switchboard", globals()) - launcher.UpdateDefaultBrowser() except: - # No valid config file available - pass + # Try the legacy config file location + try: + execfile(os.getenv("HOME", "/home/user") + "/.config/browser-proxy", globals()) + except: + # No valid config file available + pass + launcher.UpdateDefaultBrowser() setconfigdefaults()