# Save application settings and toolbar settings

**URL:** <https://discourse.slicer.org/t/save-application-settings-and-toolbar-settings/2455>\
**Category:** Support\
**Created:** [March 28, 2018, 11:34am UTC](https://discourse.slicer.org/t/save-application-settings-and-toolbar-settings/2455 "2018-03-28T11:34:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MancaZerovnik](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mancazerovnik/32/1400_2.png) [@MancaZerovnik](https://discourse.slicer.org/u/MancaZerovnik)\
**Post date:** [March 28, 2018, 11:34am UTC](https://discourse.slicer.org/t/save-application-settings-and-toolbar-settings/2455/1 "2018-03-28T11:34:02Z")

</div>

Hello,  
is it possible to save the state of toolbar and application settings (specifically I am interested in favorites Modules), so that some other user would be able to load those settings and get the same toolbar view as me?

---

<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:** [March 28, 2018, 1:41pm UTC](https://discourse.slicer.org/t/save-application-settings-and-toolbar-settings/2455/2 "2018-03-28T13:41:15Z")

</div>

These information are saved in to [Slicer.ini](https://www.slicer.org/wiki/Documentation/Nightly/Developers/DirectoryStructure#API) file. You can copy it over to another user’s profile. However, there are probably some other folder names that you don’t want to move over (such as temporary file folders, which may not be accessible to the other user).

You can also write a short Python script that the user can copy-paste into the Python console (or create batch file that is executed by Slicer) to update settings. For example, to add “Segmentations” module to the favorite module list:

```
favoriteModules = list(qt.QSettings().value('Modules/FavoriteModules'))
if 'Segmentations' not in favoriteModules and slicer.util.confirmOkCancelDisplay("Update favorite modules list and restart the application?"):
  favoriteModules.append('Segmentations')
  favoriteModules = qt.QSettings().setValue('Modules/FavoriteModules', favoriteModules)
  slicer.app.restart()
```
