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

RESOLVED FIXED

Status

Calendar
General
RESOLVED FIXED
16 years ago
12 years ago

People

(Reporter: Henrik Gemal, Assigned: Mike Potter)

Tracking

Details

(Reporter)

Description

16 years ago
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
(Assignee)

Comment 1

16 years ago
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
Last Resolved: 16 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

16 years ago
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.