Closed Bug 181443 Opened 23 years ago Closed 23 years ago

"tempIcal.ics" file should be created in %TEMP directory

Categories

(Calendar :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: mikeypotter)

Details

Current the temporary file "tempIcal.ics" is being created in the profile dir, which is not very nice. It should be created in the %TEMP directory. I hate having the profile cluttered with non important files. The "tempIcal.ics" is created here: http://lxr.mozilla.org/mozilla/source/calendar/resources/content/calendarMail.js#279 Perhaps you can reuse the code that puts "plugtmp" in the same dir: http://lxr.mozilla.org/mozilla/source/modules/plugin/base/src/nsPluginHostImpl.cpp#2007 Something like: rv = NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(pluginTmp)); 20021121
As far as I can tell, you can't get the OSs temp directory from JS. I have moved the file under the Calendar/ directory in the profile, so it doesn't clutter up the root profile directory.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
it only seems possible to get the %TEMP dir from .cpp: NS_GetSpecialDirectory(NS_OS_TEMP_DIR
The bugspam monkeys have been set free and are feeding on Calendar :: General. Be afraid for your sanity!
QA Contact: gurganbl → general
You need to log in before you can comment on or make changes to this bug.