# Can I block 3d slicer's ability to save data?

**URL:** <https://discourse.slicer.org/t/can-i-block-3d-slicers-ability-to-save-data/27947>\
**Category:** Development\
**Tags:** python\
**Created:** [February 21, 2023, 11:51am UTC](https://discourse.slicer.org/t/can-i-block-3d-slicers-ability-to-save-data/27947 "2023-02-21T11:51:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsa934](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dsa934/32/17907_2.png) [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Post date:** [February 21, 2023, 11:51am UTC](https://discourse.slicer.org/t/can-i-block-3d-slicers-ability-to-save-data/27947/1 "2023-02-21T11:51:42Z")

</div>

Operating system: window 10  
Slicer version: 5.2.1

Hi , slicer users

I was wondering if it is possible to block the 3d slicer’s save function to process data that needs to be secure.

Is it possible in the same way as commenting out the save function?

It may sound like an absurd question, but it’s necessary to prevent data leaks. Is it possible?

---

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [February 21, 2023, 1:02pm UTC](https://discourse.slicer.org/t/can-i-block-3d-slicers-ability-to-save-data/27947/2 "2023-02-21T13:02:07Z")

</div>

I’m not sure this is possible in Slicer. IO is driven by MRML storage nodes and qSlicerReaders/Writers. Slicer does not seem to have implemented methods to unregister any of these components once they have been registered.

I would’t go down the road of commenting out the registration of these components. I would probably try to search for an OS mechanism to launch Slicer on isolation. I’m not very acquainted with Windows but Windows Sandboxes sounds relevant for this case ([Windows Sandbox: How to Safely Test Software Without Ruining Your Computer](https://uk.pcmag.com/migrated-3765-windows-10/140650/windows-sandbox-how-to-safely-test-software-without-ruining-your-computer))

---

<div class="post-metadata">

**Author:** ![dsa934](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dsa934/32/17907_2.png) [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Post date:** [February 21, 2023, 2:43pm UTC](https://discourse.slicer.org/t/can-i-block-3d-slicers-ability-to-save-data/27947/3 "2023-02-21T14:43:55Z")

</div>

> [@RafaelPalomar](#):
>
> I’m not sure this is possible in Slicer. IO is driven by MRML storage nodes and qSlicerReaders/Writers. Slicer does not seem to have implemented methods to unregister any of these components once they have been registered.

I thought it would be possible to turn off the save widget, but it’s a pity.

> [@RafaelPalomar](#):
>
> Windows Sandboxes sounds relevant for this case ([Windows Sandbox: How to Safely Test Software Without Ruining Your Computer](https://uk.pcmag.com/migrated-3765-windows-10/140650/windows-sandbox-how-to-safely-test-software-without-ruining-your-computer))

Thank you for your quick response. I’m off work now, so I’ll check again tomorrow.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [February 22, 2023, 11:17pm UTC](https://discourse.slicer.org/t/can-i-block-3d-slicers-ability-to-save-data/27947/4 "2023-02-22T23:17:50Z")

</div>

The complete Slicer workflow can indeed be customized through multiple approaches

You could for example create an [Application startup file](https://slicer.readthedocs.io/en/latest/user_guide/settings.html#application-startup-file) that would take care of accommodating to your use case by removing menu entries, disabling modules, …

Alternatively, you could consider creating an extension encapsulating your workflow as well as a custom Slicer-based application bundling it.

References:

- [https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/](https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/)
- [https://www.kitware.com/slicercat-and-python-creating-custom-slicer-applications-with-qt-stylesheets/](https://www.kitware.com/slicercat-and-python-creating-custom-slicer-applications-with-qt-stylesheets/)
- [https://github.com/KitwareMedical/SlicerCustomAppTemplate](https://github.com/KitwareMedical/SlicerCustomAppTemplate)

---

<div class="post-metadata">

**Author:** ![dsa934](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dsa934/32/17907_2.png) [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Post date:** [February 23, 2023, 9:13am UTC](https://discourse.slicer.org/t/can-i-block-3d-slicers-ability-to-save-data/27947/5 "2023-02-23T09:13:26Z")

</div>

Thank you for the reply.

Is it correct to say that the 3d slicer program itself can be customized? (e.g. Slicer version\_1.0 which cannot save the used mesh MRML model file)
