Changes between Initial Version and Version 1 of De:Help/Preferences


Ignore:
Timestamp:
2018-02-21T17:15:32+01:00 (8 years ago)
Author:
Hb---
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • De:Help/Preferences

    v1 v1  
     1[[TranslatedPages(revision=1)]]
     2
     3= Einstellungen Übersicht =
     4
     5The preference data in JOSM is composed of a set of name->value pairs. The setting names are mostly ''namespaced'' with dot `.` separated words. Many JOSM plugins store their preferences grouped in a namespace.
     6
     7You can get a similar raw view by viewing this file, but this [Help/Preferences/Advanced 'Advanced' preferences panel] is intended to provide an easier alternative.
     8
     9== Menus ==
     10
     11Most of the settings can be reached via menus
     12* [[Help/Action/Preferences]]
     13* [[Help/Preferences/Advanced]]
     14
     15== Other preferences ==
     16
     17* [[Help/JOSM interface customization]]
     18
     19== JOSM preference/data/cache directories ==
     20
     21JOSM stores 3 kinds of files in different directories:
     22 Preferences:: Configuration data and settings, such as authentication for the OSM server, list of last opened files, selection of expandable dialogs on the right, etc.
     23 User data:: User-specific data files, for example, autosave data, plugins and ignored validator errors
     24 Cache:: Files downloaded from the internet and stored for a limited time to avoid repeated downloads and allow faster access. For example imagery tiles and startup news.
     25
     26The default location of the directories depends on your operating system.
     27
     28=== Windows ===
     29
     30'''Preferences''' and '''user data''' is stored in
     31{{{
     32%APPDATA%\JOSM
     33}}}
     34To locate this folder, try opening Explorer window and paste the following text in location, then hit enter: `%APPDATA%\JOSM`, On Windows Vista and later, it should be something like `C:\Users\<YourName>\AppData\Roaming\JOSM`. Note, that the directory `C:\Users\<YourName>\AppData` can be hidden by default.
     35
     36The '''cache''' is located in
     37{{{
     38%LOCALAPPDATA%\JOSM\cache
     39}}}
     40for Windows Vista and later.
     41
     42This is typically `C:\Users\<YourName>\AppData\Local\JOSM\cache`.
     43
     44On Windows XP and earlier, the cache is in `%APPDATA%\JOSM\cache`.
     45
     46=== MacOS===
     47
     48On MacOS, the default locations are as follows:
     49 Preferences:: `Users/<YourName>/Library/Preferences/JOSM`
     50 User data:: `Users/<YourName>/Library/JOSM`
     51 Cache:: `Users/<YourName>/Library/Caches/JOSM`
     52
     53=== Linux ===
     54
     55Since r11162, JOSM uses the [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] for fresh installations, i.e.
     56 Preferences:: `$HOME/.config/JOSM`
     57 User data:: `$HOME/.local/share/JOSM`
     58 Cache:: `$HOME/.cache/JOSM`
     59
     60JOSM respects the `$XDG_CONFIG_HOME`, `$XDG_DATA_HOME` and `$XDG_CACHE_HOME` environment variables to change these locations.
     61
     62Prior to r11162, the locations were
     63 Preferences:: `$HOME/.josm`
     64 User data:: `$HOME/.josm`
     65 Cache:: `$HOME/.josm/cache`
     66
     67JOSM will continue to use the old locations if the directory `$HOME/.josm` exists. If you have a fresh installation but prefer the old scheme, you can create the `$HOME/.josm` directory by hand.
     68
     69Note on hidden files: File names beginning with a dot are hidden on Linux. To show the contents of the hidden folder, use the file manager and enter "~/.josm" in the address line (if no address line is visible just try to enter a letter and hopefully a popup to enter the address will open). Alternatively, it is possible to "show hidden" files and folders in the file manager, using the keyboard shortcut Ctrl+H.
     70
     71=== Customization (all operating systems) ===
     72
     73==== Setting all 3 locations ====
     74
     75The locations can be set using system properties specified from the [[Help/CommandLineOptions|commandline]]:
     76 Preferences:: `-Djosm.pref=...`
     77 User data:: `-Djosm.userdata=...`
     78 Cache:: `-Djosm.cache=...`
     79
     80For example to store the cache located in `D:\cache\JOSM`, you would need to run a command like this:
     81{{{
     82java -Djosm.cache=D:\cache\JOSM -jar josm.jar
     83}}}
     84
     85==== Setting a common directory ====
     86
     87Alternatively, all 3 locations can be moved to a common location using the system property `-Djosm.home=...`.
     88For example with
     89{{{
     90java -Djosm.home=D:\myJOSM -jar josm.jar
     91}}}
     92the locations change to
     93 Preferences:: `D:\myJOSM`
     94 User data:: `D:\myJOSM`
     95 Cache:: `D:\myJOSM\cache`
     96
     97==== Changing the directory base name ====
     98
     99Instead of specifying the full path for the JOSM directories, you can use the system property `-Djosm.dir.name=` to modify just the name of the last directory component, which is `JOSM` by default. This is especially useful in order to keep multiple ''profiles'' on one computer, which should not interfere. For example, to have one profile for productive work with the stable tested version and one for the experimental development version, you would start the development version like this:
     100{{{
     101java -Djosm.dir.name=JOSM-dev -jar josm-latest.jar
     102}}}
     103On Linux, the directories would then change to
     104 Preferences:: `$HOME/.config/JOSM-dev`
     105 User data:: `$HOME/.local/share/JOSM-dev`
     106 Cache:: `$HOME/.cache/JOSM-dev`
     107
     108(For locations in the style prior to r11162, the lower-case version with the prepended dot will be used, e.g. `$HOME/.josm-dev`.)
     109
     110=== preferences.xml Schema ===
     111
     112http://josm.openstreetmap.de/preferences-1.0
     113
     114Some descriptions can be found in [[Help/Preferences/ImportExport]] (stub)
     115
     116=== Auto save subfolder ===
     117
     118Utilized by [wiki:/Help/Action/AutoSave autosave function].
     119
     120== See also ==
     121* [[De:Help/ResetPreferences]] - there many ways to reset preferences
     122* [[De:Help/Action/AutoSave]] feature
     123* [[De:Help/CommandLineOptions]] - how to change/load custom settings via command line