diff options
Diffstat (limited to 'toolkit/components/apppicker/content/appPicker.js')
-rw-r--r-- | toolkit/components/apppicker/content/appPicker.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toolkit/components/apppicker/content/appPicker.js b/toolkit/components/apppicker/content/appPicker.js index 6922fce39f..21a007632b 100644 --- a/toolkit/components/apppicker/content/appPicker.js +++ b/toolkit/components/apppicker/content/appPicker.js @@ -119,6 +119,12 @@ AppPicker.prototype = return file.getVersionInfoField("FileDescription"); } catch (e) {} } +#elifdef XP_MACOSX + if (file instanceof Components.interfaces.nsILocalFileMac) { + try { + return file.bundleDisplayName; + } catch (e) {} + } #endif return file.leafName; }, @@ -177,6 +183,8 @@ AppPicker.prototype = var startLocation; #ifdef XP_WIN startLocation = "ProgF"; // Program Files +#elifdef XP_MACOSX + startLocation = "LocApp"; // Local Applications #else startLocation = "Home"; #endif |