diff --git a/toolkit/webapps/LinuxNativeApp.js b/toolkit/webapps/LinuxNativeApp.js index f046c22a3bcc..e69d4afa61ba 100644 --- a/toolkit/webapps/LinuxNativeApp.js +++ b/toolkit/webapps/LinuxNativeApp.js @@ -277,6 +277,9 @@ NativeApp.prototype = { // $XDG_DATA_HOME/applications/owa-.desktop let desktopINIfile = getFile(this.desktopINI); + if (desktopINIfile.parent && !desktopINIfile.parent.exists()) { + desktopINIfile.parent.create(Ci.nsIFile.DIRECTORY_TYPE, PERMS_DIRECTORY); + } let writer = Cc["@mozilla.org/xpcom/ini-processor-factory;1"]. getService(Ci.nsIINIParserFactory).