[[TranslatedPages]] [[PageOutline(2-10,Table of Contents)]] = Preferences Overview = The 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. You can get a similar raw view by viewing these files, but the preferences' panel [[JOSMImage(preferences/advanced,link=,24,middle)]] [wikitr:/Help/Preferences/Advanced advanced preferences] is intended to provide an easier alternative. == Menus == Most of the settings can be reached via menus in the [[JOSMImage(preference)]] [wikitr:/Help/Action/Preferences preferences dialog], See the individual panel pages: [[TitleIndex(Help/Preferences/,hideprefix,exclude=*Advanced,format=compact)]] {{{#!comment English names [[TitleIndex(Help/Preferences/,hideprefix,exclude=*Advanced,format=compact)]] The same list with the translated names: [wikitr:/Help/Preferences/Audio Audio], [wikitr:/Help/Preferences/Connection Connexion], [wikitr:/Help/Preferences/Display Affichage], [wikitr:/Help/Preferences/Imagery Imagerie], [wikitr:/Help/Preferences/ImportExport Importation Exportation], [wikitr:/Help/Preferences/Map Carte], [wikitr:/Help/Preferences/Plugins Greffons], [wikitr:/Help/Preferences/RemoteControl Contrôle à Distance], [wikitr:/Help/Preferences/Shortcuts Raccourcis clavier], [wikitr:/Help/Preferences/Toolbar barre d'outils], [wikitr:/Help/Preferences/Validator Validateur] }}} == Other preferences == * [wikitr:"/Help/JOSM interface customization" JOSM interface customization] == JOSM preference/data/cache directories ==#JOSMpreferencedatacachedirectories {{{#!comment #JOSMpreferencedatacachedirectories is called from Help/Preferences/Plugins - Manual installation }}} JOSM stores 3 kinds of files in different directories: 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. User data:: User-specific data files, for example, autosave data, plugins and ignored validator errors 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. The default location of the directories depends on your operating system and is listed in the [wikitr:/Help/Action/About#InstallationDetails Installation details] tab of the [[JOSMImage(logo_48x48x32,link=,middle,24)]][wikitr:/Help/Action/About About dialog] in the [wikitr:/Help/Menu/Help Help menu] === Windows === **Preferences** and **user data** is stored in {{{ %APPDATA%\JOSM }}} To 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\\AppData\Roaming\JOSM`. Note, that the directory `C:\Users\\AppData` can be hidden by default. The **cache** is located in {{{ %LOCALAPPDATA%\JOSM\cache }}} for Windows Vista and later. This is typically `C:\Users\\AppData\Local\JOSM\cache`. On Windows XP and earlier, the cache is in `%APPDATA%\JOSM\cache`. === MacOS=== On MacOS, the default locations are as follows: Preferences:: `Users//Library/Preferences/JOSM` User data:: `Users//Library/JOSM` Cache:: `Users//Library/Caches/JOSM` === Linux === Since r11162, JOSM uses the [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] for fresh installations, i.e. Preferences:: `$HOME/.config/JOSM` User data:: `$HOME/.local/share/JOSM` Cache:: `$HOME/.cache/JOSM` JOSM respects the `$XDG_CONFIG_HOME`, `$XDG_DATA_HOME` and `$XDG_CACHE_HOME` environment variables to change these locations. Prior to r11162, the locations were Preferences:: `$HOME/.josm` User data:: `$HOME/.josm` Cache:: `$HOME/.josm/cache` If JOSM is installed via flatpak, the locations are Preferences:: `$HOME/.var/app/org.openstreetmap.josm/config` User data:: `$HOME/.var/app/org.openstreetmap.josm/data` Cache:: `$HOME/.var/app/org.openstreetmap.josm/cache` JOSM 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. Note 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`. === Customization (all operating systems) === #Customizationalloperatingsystems ==== Setting all 3 locations ==== The locations can be set using system properties specified from the [wikitr:/Help/CommandLineOptions command line]: Preferences:: `-Djosm.pref=...` User data:: `-Djosm.userdata=...` Cache:: `-Djosm.cache=...` For example to store the cache located in `D:\cache\JOSM`, you would need to run a command like this: {{{ java -Djosm.cache=D:\cache\JOSM -jar josm.jar }}} ==== Setting a common directory ==== Alternatively, all 3 locations can be moved to a common location using the system property `-Djosm.home=...`. For example with {{{ java -Djosm.home=D:\myJOSM -jar josm.jar }}} the locations change to Preferences:: `D:\myJOSM` User data:: `D:\myJOSM` Cache:: `D:\myJOSM\cache` ==== Changing the directory base name ==== Instead 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: {{{#!sh java -Djosm.dir.name=JOSM-dev -jar josm-latest.jar }}} On Linux, the directories would then change to Preferences:: `$HOME/.config/JOSM-dev` User data:: `$HOME/.local/share/JOSM-dev` Cache:: `$HOME/.cache/JOSM-dev` (For locations in the style prior to r11162, the lower-case version with the prepended dot will be used, e.g. `$HOME/.josm-dev`.) === preferences.xml Schema === See [/preferences-1.0.xml]. Some descriptions can be found in [wikitr:/Help/Preferences/ImportExport Custom configuration XML files for JOSM] === Auto save subfolder === Utilized by [wikitr:/Help/Action/AutoSave autosave function]. == See also == * [wikitr:/Help/Action/About#InstallationDetails Installation details] * [wikitr:/Help/ResetPreferences Reset preferences] - ways to reset preferences * [wikitr:/Help/Action/AutoSave Autosave] feature * [wikitr:/Help/CommandLineOptions Command line options] - how to change/load custom settings via command line ---- Back to [wikitr:/Help/Action/Preferences Preferences dialog] \\ Back to [wikitr:/Help Main Help]