Documentation/4.10/SlicerApplication/ApplicationSettings

From Slicer Wiki
Jump to: navigation, search
Home < Documentation < 4.10 < SlicerApplication < ApplicationSettings


For the latest Slicer documentation, visit the read-the-docs.


Overview

The application setting dialog will allow the user to customize application behavior.

After starting Slicer, it can be accessed clicking on menu Edit -> Application Settings

Panels

General

General settings panel

Modules

Skip Loading of

Select which type of modules to not load at startup. It is also possible to start slicer by temporarily disabling those modules (not saved in settings) by passing the arguments in the command line.

For example $ .\Slicer.exe --disable-cli-modules will start Slicer without any CLI loaded.

Prefer Executable CLIs

Use the executable version of a CLI instead of its shared version. CLI modules typically come in 2 forms, as shared (dll)and as executable (exe). By default, if there is a shared version, it is the one loaded by Slicer, ignoring the executable version. Loading a shared runs the module faster but increases the memory consumption. For some configurations (e.g. Windows 32b), memory is critical. Toggling this option to ON skips the loading of shared CLIs and loads executable version of CLIs instead. If there is no executable for a given CLI, the shared version is used.

Show hidden modules

Some modules don't have a user interface, they are hidden from the module's list. For debugging purpose, it is possible to force their display

Temporary directory

Directory where modules can store their temporary outputs if needed.

Additional module paths

List of directories scanned at startup to load additional modules. Any CLI, Loadable or scripted modules located in these paths will be loaded. Extensions are listed in the list, to remove an extension, use the Extension Manager instead.

It is also possible to start slicer by temporarily adding module paths (not saved in settings) by passing the arguments in the command line.

For example $ .\Slicer.exe --additional-module-paths C:\path\to\lib\Slicer-X.Y\cli-modules will start Slicer trying to load CLIs found in the specified directory.

Modules

List of modules loaded, ignored or failed to load in Slicer. An unchecked checkbox indicates that module should not be loaded (ignored) next time Slicer starts. A text color code is used to describe the state of each module:

    • Black: module successfully loaded in Slicer
    • Gray: module not loaded because it has been ignored (unchecked)
    • Red: module failed to load. There are multiple reasons why a module can fail to load. Look at startup log outputs to have more informations.

If a module is not loaded in Slicer (ignored or failed), all dependent modules won't be loaded. You can verify the dependencies of a module in the tooltip of the module.

You can filter the list of modules by untoggling in the advanced (>>) panel the "To Load", "To Ignore", "Loaded", "Ignored" and "Failed" buttons.

Home

Module that is shown when Slicer starts up.

Favorites

List of modules that appear in the Favorites toolbar. Favorites toolbar To add a module, drag&drop it from the Modules list above. Then use the advanced panel (>>) to reorganize/delete the modules within the toolbar.

Modules settings panel

Extensions

Extensions settings panel

Cache

Cache settings panel

Python

Python settings panel

Units

Units settins panel

Volume Rendering

Volume Rendering settings panel

Others

Extensions can also add their own settings panel.

Information for Advanced Users

Settings file location

Settings are stored in a *.ini files located in directory like these ones:

  • Windows: %USERPROFILE%\AppData\Roaming\NA-MIC\ (typically C:\Users\<your_user_name>\AppData\Roaming\NA-MIC\)
  • Linux: ~/.config/NA-MIC/
  • Mac: ~/.config/www.na-mic.org/

Deleting the *.ini files restores all the settings to default.


There are two types of settings:


User specific settings:

This file is named Slicer.ini and it stores settings applying to all version of Slicer installed by the current user.

To display the exact location of this settings file, open a terminal and type:

$ ./Slicer --settings-path

or enter the following in the python interactor:

>>> slicer.app.slicerUserSettingsFilePath

User and revision specific settings:

This file is named like Slicer-<REVISION>.ini and it stores settings applying to a specific revision of Slicer installed by the current user.

To display the exact location of this settings file, enter the following in the python interactor:

>>> slicer.app.slicerRevisionUserSettingsFilePath