Bug 300856 - Cannot set default download directory to home on Linux/Unix, r=mconnor

This commit is contained in:
wr%rosenauer.org 2006-02-01 16:19:24 +00:00
Родитель 86f569b0a7
Коммит 301c5a1e59
3 изменённых файлов: 35 добавлений и 26 удалений

Просмотреть файл

@ -94,19 +94,21 @@ var gDownloadsPane = {
_getSpecialFolderKey: function (aFolderType)
{
if (aFolderType == "Desktop")
return "Desk";
if (aFolderType != "Downloads")
throw "ASSERTION FAILED: folder type should be 'Desktop' or 'Downloads'";
#ifdef XP_WIN
return aFolderType == "Desktop" ? "DeskP" : "Pers";
#endif
return "Pers";
#else
#ifdef XP_MACOSX
return aFolderType == "Desktop" ? "UsrDsk" : "UsrDocs";
#endif
#ifdef XP_OS2
return aFolderType == "Desktop" ? "Desk" : "Home";
#endif
#ifdef XP_BEOS
return aFolderType == "Desktop" ? "Desk" : "Home";
#endif
return "UsrDocs";
#else
return "Home";
#endif
#endif
},
_getDownloadsFolder: function (aFolder)

Просмотреть файл

@ -94,16 +94,21 @@ var gDownloadsPane = {
_getSpecialFolderKey: function (aFolderType)
{
if (aFolderType == "Desktop")
return "Desk";
if (aFolderType != "Downloads")
throw "ASSERTION FAILED: folder type should be 'Desktop' or 'Downloads'";
#ifdef XP_WIN
return aFolderType == "Desktop" ? "DeskP" : "Pers";
#endif
return "Pers";
#else
#ifdef XP_MACOSX
return aFolderType == "Desktop" ? "UsrDsk" : "UsrDocs";
#endif
#ifdef XP_OS2
return aFolderType == "Desktop" ? "Desk" : "Home";
#endif
return "UsrDocs";
#else
return "Home";
#endif
#endif
},
_getDownloadsFolder: function (aFolder)

Просмотреть файл

@ -778,19 +778,21 @@ function initAutoDownloadDisplay()
function getSpecialFolderKey(aFolderType)
{
if (aFolderType == "Desktop")
return "Desk";
if (aFolderType != "Downloads")
throw "ASSERTION FAILED: folder type should be 'Desktop' or 'Downloads'";
#ifdef XP_WIN
return aFolderType == "Desktop" ? "DeskP" : "Pers";
#endif
return "Pers";
#else
#ifdef XP_MACOSX
return aFolderType == "Desktop" ? "UsrDsk" : "UsrDocs";
return "UsrDocs";
#else
return "Home";
#endif
#ifdef XP_OS2
return aFolderType == "Desktop" ? "Desk" : "Home";
#endif
#ifdef XP_BEOS
return aFolderType == "Desktop" ? "Desk" : "Home";
#endif
return "Home";
}
function getDownloadsFolder(aFolder)