diff --git a/src/extensions/default/OpenWithExternalApplication/main.js b/src/extensions/default/OpenWithExternalApplication/main.js index 6ab78eeb1c0..3589f994c49 100644 --- a/src/extensions/default/OpenWithExternalApplication/main.js +++ b/src/extensions/default/OpenWithExternalApplication/main.js @@ -32,6 +32,7 @@ define(function (require, exports, module) { ExtensionUtils = brackets.getModule("utils/ExtensionUtils"), NodeDomain = brackets.getModule("utils/NodeDomain"), FileUtils = brackets.getModule("file/FileUtils"), + FileSystem = brackets.getModule("filesystem/FileSystem"), GraphicsFile = require("GraphicsFile"); /** @@ -49,7 +50,7 @@ define(function (require, exports, module) { var extensionToExtApplicationMap = {}; function convertUnixPathToWindowsPath(path) { - if (brackets.platform === "win" && path && path[1] === ":" && path[2] === "/") { + if (brackets.platform === "win" && path && FileSystem.isAbsolutePath(path)) { path = path.replace(RegExp('/','g'), '\\'); } return path;