]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/configuration.txt
Version 6, October 2008
[GpsPrune.git] / tim / prune / configuration.txt
1
2 == Prune configuration ==
3 =========================
4
5 Starting with version 6 of Prune, it's possible to create a configuration file which controls a few basic configuration options.  Currently there isn't a nice gui to let you select these options, although this may be added in the future.  Instead, you can just create a text file with the configuration, and save it with any regular text editor.  Then Prune will load these options when it starts up.
6
7 == File location ==
8 By default, Prune will try to load a file called .pruneconfig from the current directory (note the dot at the start of the filename).  If this file isn't there, it doesn't matter, it'll just be ignored and Prune will use default settings as before.  The file won't be created for you if it doesn't exist.
9 If you create this file in your home directory and you also launch Prune from the same directory, Prune will find the file and use whatever configuration is specified inside.
10
11 If you want to use another location for this file, or another name, you'll have to tell Prune where it is.  You can do this with an extra commandline parameter, like this:
12    java -jar prune.jar --configfile=h:/gps/pruneconfig.txt
13 You can obviously set this in any shortcuts or aliases that you're currently using so you don't have to type it in every time.  If you specify a file like this and Prune can't find it or can't read it, you'll get a warning message in the console.
14
15 == File structure ==
16 The configuration file is a simple text file, so you can edit it with any editor like Notepad, Kate or gedit.  Each line in the file represents a configuration setting, with the format:
17    key=value
18 The key should match one of the recognised keys given below.  Any unrecognised keys will just be ignored.
19 The file can contain any number of settings, in any order.  You can have just one in there or all possible settings.
20
21 == Possible configuration settings ==
22 The following settings can be defined in the file, in any order:
23
24 == Working directory ==
25 This setting defines the default directory when you start Prune.  If your track files are always in a certain directory, you can set this here so that Prune starts from that directory.  Example:
26    prune.directory=/home/user/gps/
27
28 == Language code ==
29 This setting defines the language to use for Prune's interface.  By default, Prune will try to use the language set in your system.  If you use the --lang= command line parameter, you can override this to use a different one.  Or you can put a line in your configuration file to define it there instead.  Possible codes are currently EN, DE, DE_ch, ES, FR, IT and PL.  Example:
30    prune.languagecode=ES
31 If you use the --lang= command line parameter, this takes priority over what's in the configuration file.
32
33 == Metric/imperial units ==
34 By default Prune uses metric units, displaying altitudes in metres and distances in kilometres.  This setting allows you to specify whether you want metric or imperial units by default.  Example:
35    prune.metricunits=n
36 By using a value of "n" (for "no"), Prune then displays values in imperial units of feet and miles.
37
38 == Povray font ==
39 When Prune exports to Pov format, it specifies a font to use for the cardinals N, S, E, W.  Usually this is "crystal.ttf" because this comes as standard with povray.  This setting allows you to change that default if you always want to use a specific font installed on your system.  Example:
40    prune.povrayfont=DejaVuSans-Bold.ttf
41 The available fonts will depend on what you have installed.  See the povray documentation for more on this.
42
43 == GPS device ==
44 When Prune invokes Gpsbabel to load data, it needs to specify the GPS device to load from.  The name of this will depend on your GPS receiver and your connection (eg serial/usb).  If you call gpsbabel from the command line, it's the -f parameter.  This setting allows you to specify the default value used by Prune when you select the load from gps function.  Example:
45    prune.gpsdevice=usb:
46 A GPS connected to the serial port may appear as /dev/ttyS0.
47
48 == GPS format ==
49 This setting controls the default value of the format parameter to gpsbabel.  If you call gpsbabel from the command line, it's the -i parameter.  Example:
50    prune.gpsformat=garmin
51
52 == Example file ==
53 The following can be used as a template to make your own file.
54
55 # Prune configuration file
56 prune.directory=/home/user/gps/
57 prune.languagecode=ES
58 prune.metricunits=y
59 prune.povrayfont=crystal.ttf
60 prune.gpsdevice=usb:
61 prune.gpsformat=garmin
62