Commits

Rafal Chlodnicki  committed d1e271a

sys.platform does not have 'windows' key.
win32 is the correct key, at least with Python 2.6.

  • Participants
  • Parent commits 244bbaa

Comments (0)

Files changed (1)

File resolver/abstract.py

 DEFAULT_OPEN_LINK_COMMANDS = dict(
     # Standard universal can opener for OSX.
     darwin=['open'],
-    
+
     # Found at:
     # - http://frank.zinepal.com/open-a-file-in-the-default-application-using
     # - http://commandwindows.com/tipsandtricks.htm#startcommand
-    windows=['cmd', '/c', 'start'],
+    win32=['cmd', '/c', 'start'],
 
     # Dunno yet - help anyone?
     # linux= FIXME ???
         if not match:
             return None
         return self.replace(match)
-    
+
     def get_link_command(self):
         platform = sys.platform
         for key, val in self.link_commands.iteritems():
         command = self.get_link_command()
         if not command:
             sublime.error_message('Could not get link opener command.\nPlatform not yet supported.')
+            return None
         content = content.encode('utf-8')
         cmd = command + [content]
         arg_list_wrapper = self.settings.get("orgmode.open_link.resolver.abstract.arg_list_wrapper", [])