# Changing all paths in Slicer

**URL:** <https://discourse.slicer.org/t/changing-all-paths-in-slicer/19916>\
**Category:** Support\
**Created:** [September 29, 2021, 5:47pm UTC](https://discourse.slicer.org/t/changing-all-paths-in-slicer/19916 "2021-09-29T17:47:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 29, 2021, 5:47pm UTC](https://discourse.slicer.org/t/changing-all-paths-in-slicer/19916/1 "2021-09-29T17:47:06Z")

</div>

We are using Slicer in a docker environment. There is a persistent storage mounted under /home/docker/mydata so that individual settings/files are saved there and when the container is stop that they are retained.

I have been manually configuring default paths (like download, cache, default location), in Slicer.ini that we build the docker image with. But it turns out I am missing other things (like DICOM cache folder), and probably there are other path settings that I am not aware of .

So, what would be the most robust way that all default path variables are prefixed by /home/docker/mydata/Slicer or something along those lines?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 29, 2021, 6:17pm UTC](https://discourse.slicer.org/t/changing-all-paths-in-slicer/19916/2 "2021-09-29T18:17:07Z")

</div>

All settings are saved in Slicer.ini and Slicer-NNN.ini, so it is enough set the content of those two files correctly. Modules do not (should not) invent their own root paths but should derive their [paths from those provided by the application](https://github.com/Slicer/Slicer/blob/047571414481cada211db12f13eb7c5148a1c3fd/Base/QTCore/qSlicerCoreApplication.h#L72-L82).

In Slicer core, the only module that use a custom root path is the DICOM module, as it places the DICOM database in [QStandardPaths::DocumentsLocation](https://doc.qt.io/qt-5/qstandardpaths.html). It should point to a good location by default, but if this is not the case in your special configuration, then all you need to set (in addition to the qSlicerCoreApplication-managed paths) in your Slicer.ini is the DICOM database.
