View Issue Details

IDProjectCategoryView StatusLast Update
0001052SkyChart1-Softwarepublic13-05-06 14:34
ReporterMattia Verga Assigned To 
PrioritynormalSeveritytweakReproducibilityN/A
Status closedResolutionwon't fix 
Platformx86OSLinuxOS Version3
Product Version3.7 SVN 
Summary0001052: Appropriate temporary directory for temporary files
DescriptionThis is a trivial request, maybe you doesn't want to apply this for some coding reason...

I see Skychart is using as a temporary directory a folder under <user_home>\.skychart\tmp or <user_home>\.skychart\pictures for downloaded dss images . It would be more standard to use an appropriate directory like \tmp or \var\tmp (see http://0pointer.de/blog/projects/tmp.html)
TagsNo tags attached.

Activities

Patrick Chevalley

12-10-08 11:31

administrator   ~0002237

The main reason for .skychart\tmp is to have the same directory structure on every platform, including Windows and Mac.

I not want to change unless there is an imperative reason to do it. There is probably many case where such a change can prevent the program to run correctly.

If this is a distribution requirement I can make it more easy to patch or configure, for example with a conditional define.

.skychart\pictures is different as there is project to make it more permanent ( 0000455 and 0000528 )

Mattia Verga

12-10-08 17:43

reporter   ~0002241

No, it's not a distribution requirement. I do a backup of my user directory it would save space if there aren't temporary files.
For the moment it isn't a problem, since .skychart/tmp is very small and in .skychart/pictures there's only one dss image. But if you plan to make downloaded dss images permanent the size will grow.

Another point can be the fact that on a multi user environment, using \var\tmp for downloaded dss images can save a lot of space... but as I said it's a trivial request, only you as developer know if it's a worthwhile change or it's too hard to make it work on a cross distribution base. So feel free to close this suggestion if you want ;-) .

Lance Carter

12-11-30 21:34

reporter   ~0002330

The path to Print files should remain set.
File>Printer Setup>Path to save the file?>Browse for folder>OK
Now in Windows 7, defaults to:
Network>Libraries>Myname>Appdata>Local>Skychart>tmp
It would be helpful if this path is saved or remains set during session.

Patrick Chevalley

12-12-03 10:38

administrator   ~0002337

It is saved but as every other setting you need to click "Setup/save configuration now" , or have "save on exit" checked.
If this not work for you please open another issue and specify the version you use.

About the original request, I think to not change the tmp location at the moment mainly because of the small size of the files and risk it not work everywhere.

Issue History

Date Modified Username Field Change
12-10-06 16:18 Mattia Verga New Issue
12-10-08 11:31 Patrick Chevalley Note Added: 0002237
12-10-08 17:43 Mattia Verga Note Added: 0002241
12-11-30 21:34 Lance Carter Note Added: 0002330
12-12-03 10:38 Patrick Chevalley Note Added: 0002337
12-12-03 10:38 Patrick Chevalley Status new => resolved
12-12-03 10:38 Patrick Chevalley Resolution open => won't fix
13-05-06 14:34 Patrick Chevalley Status resolved => closed