# Edit default dicom import directory

**URL:** <https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704>\
**Category:** Support\
**Tags:** dicom\
**Created:** [October 9, 2025, 8:55am UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704 "2025-10-09T08:55:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvergnat](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mvergnat](https://discourse.slicer.org/u/mvergnat)\
**Post date:** [October 9, 2025, 8:55am UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/1 "2025-10-09T08:55:00Z")

</div>

hello to all 3dslicer fans!

I use slicer 5.8.1 on PC Windows 10 pro

I use “import dicom” very often.

unfortunately the “Import DICOM files from directory” window always open in the same folder:

C:\Users\7064654\AppData\Local\slicer.org\Slicer 5.8.1

I want to edit the default pathway into the other folder where I store all my dicoms.

Sure, I could create a shortcut, but I would like something more straightforward.

I looked on:

- 3dslicer **App Settings** “General” or “Dicom”: no solution
- **chatgpt** : no good solution
- 3dslicer **forums** : no solution.

Does anyone have an idea?

thanks for help!

mathieu

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 9, 2025, 9:14am UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/2 "2025-10-09T09:14:22Z")

</div>

In all the apps I develop, I store tha last used directory in application settings (QSettings, i.e. the Slicer.ini file). It would be quite easy to add this to the DICOM import.

---

<div class="post-metadata">

**Author:** ![mvergnat](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mvergnat](https://discourse.slicer.org/u/mvergnat)\
**Post date:** [October 9, 2025, 9:32am UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/3 "2025-10-09T09:32:58Z")

</div>

dear csaba pinter,

many thx for answer!!

unfortunately, i m not sure i understand well:

you mean that i could create an app or modify (like python programming) an existing app? that is above my competences.

I asked if there was an easy way to do this in settings.

if there is no easy way, the shortcut inside the default folder is an easier way to achieve goal.

MANY THX indeed for your time! i appreciate!

mathieu

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 9, 2025, 1:39pm UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/4 "2025-10-09T13:39:40Z")

</div>

What I said is that the developers could add this feature simply.

I don’t think there is any setting exposed for this.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [October 9, 2025, 3:49pm UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/5 "2025-10-09T15:49:11Z")

</div>

It could be that this directory shortcut available in the `Import DICOM` dialog box is handled by Qt itself.

On Linux, my Slicer startup script edits `$HOME/.config/QtProject.conf` to add a few directories to the shortcut key. Then the above mentioned dialog box shows the edited shortcuts.

But there’s a caveat. If just after starting Slicer, the `Add data/Choose file(s) to add` dialog box is raised, the shortcuts in that configuration file get overwritten to $HOME.

The workaround is good enough for me, your’s would be good enough for you. A general solution would be nice indeed, I have no idea if it’s Qt or application related.

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [October 9, 2025, 9:05pm UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/6 "2025-10-09T21:05:09Z")

</div>

+1 for remembering a last-used import directory for DICOM import. That would be a nice quality of life improvement.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [October 9, 2025, 9:55pm UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/7 "2025-10-09T21:55:09Z")

</div>

If someone is working on this, it would also be nice to remember the recently used dicom database locations too.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [November 11, 2025, 2:41pm UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/8 "2025-11-11T14:41:41Z")

</div>

> [@pieper](#):
>
> it would also be nice to remember the recently used dicom database locations too.

@pieper What do you mean exactly? We already start navigating to select a new database from the location of the current one. Do you suggest opening a new dialog offering the last N database paths?

We just did the “saving the last imported DICOM directory” part, but this request needs clarification before we issue a PR. Thanks!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [November 11, 2025, 4:34pm UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/9 "2025-11-11T16:34:02Z")

</div>

Hi @cpinter - What I often do is create a ‘dicom database per project’. For example, I get some data for multiple patients for research or I download a collection from IDC. Then I’ll want to switch Slicer between databases to as I work on various projects. Currently I use the directory browser to pick the dicom database folder for the project, but I need to remember and find the database directory manually. It would be great if there were a list of recent directories stored in the settings and available in a pull aside menu of the dicom module to simplify this workflow.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [November 12, 2025, 2:12pm UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/10 "2025-11-12T14:12:13Z")

</div>

There is a PR for these two changes: [ENH: Last used DICOM import and 10 last used database directories are stored by xskere · Pull Request #8843 · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/pull/8843)

---

<div class="post-metadata">

**Author:** ![xskere](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xskere/32/81417_2.png) [@xskere](https://discourse.slicer.org/u/xskere)\
**Post date:** [November 12, 2025, 2:16pm UTC](https://discourse.slicer.org/t/edit-default-dicom-import-directory/44704/11 "2025-11-12T14:16:06Z")

</div>

I hope the changes in the PR are what were on your mind!
