# Enable automatic extension update check?

**URL:** <https://discourse.slicer.org/t/enable-automatic-extension-update-check/25062>\
**Category:** Development\
**Created:** [September 2, 2022, 10:57pm UTC](https://discourse.slicer.org/t/enable-automatic-extension-update-check/25062 "2022-09-02T22:57:08Z")\
**Posts on this page:** 7\
**Page:** 1

<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 2, 2022, 10:57pm UTC](https://discourse.slicer.org/t/enable-automatic-extension-update-check/25062/1 "2022-09-02T22:57:08Z")

</div>

[Automatic extension update check](https://discourse.slicer.org/t/new-feature-automatic-update-of-extensions/24416) works really well in Slicer-5.0.3, but since it is not enabled by default and the settings is quite hidden in the extensions manager (see the image below) probably many users are not aware that this very useful feature exists.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/6/56f78d4c425ac8bfc235218f9cdd0e02816e0143.png)

We should make this feature enabled by default, but since it would mean that Slicer contacts a server regularly (once a day by default), we should probably ask consent from the user.

Does anyone have a suggestion for the text that we should ask from users?  
Are there any other suggestions related to auto-update?

---

<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:** [September 3, 2022, 5:44pm UTC](https://discourse.slicer.org/t/enable-automatic-extension-update-check/25062/2 "2022-09-03T17:44:13Z")

</div>

I was thinking this kind of option should go in the Welcome module along with an option to check for updates to the app itself. I think having a single option for both the application and extensions would be more logical and simpler. Also the status would be visible to the user every time the application starts as long as the Welcome module was their home, which I guess most people never change.

The text could be something like: “Automatically check for updates to the application and installed extensions. Note that anonymized usage statistics will be recorded.”

Having this enabled by default is fine with me since all OSes, even ubuntu, have auto update checks on by default. Even venerable open source apps like vim have it enabled by default too, and the checkbox is hidden in the preference dialog. Anyone who is particularly concerned is no doubt used to looking for ways to disable these features.

I would hesitate to add another dialog at startup since we already have the clinical use warning and we don’t really want to detract from that.

---

<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 6, 2022, 12:41am UTC](https://discourse.slicer.org/t/enable-automatic-extension-update-check/25062/3 "2022-09-06T00:41:42Z")

</div>

Thanks for the suggestions, these sound good to me.

@jcfr how could we detect that a new Slicer Stable Release is available?

---

<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 7, 2022, 3:24pm UTC](https://discourse.slicer.org/t/enable-automatic-extension-update-check/25062/4 "2022-09-07T15:24:13Z")

</div>

How does this look?

Automatic update is disabled, the button can be clicked for a one-time update check:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/5/459c008c3bcce1d433e7abb5dff10f5d370754d4.png)

Update is found:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/1/d1d5f387594d00412746dc960e0093a904061019.png)

Automatic update is enabled:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/9/a92552d29cebfa8a9dc80c3c1ec1b20b1a0d6524.png)

---

<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 8, 2022, 3:45am UTC](https://discourse.slicer.org/t/enable-automatic-extension-update-check/25062/5 "2022-09-08T03:45:58Z")

</div>

This enhancement has been [integrated into Slicer Preview Release (PR-6520)](https://github.com/Slicer/Slicer/pull/6520) and will be available for download from 2022-09-09.

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [September 8, 2022, 6:25pm UTC](https://discourse.slicer.org/t/enable-automatic-extension-update-check/25062/6 "2022-09-08T18:25:01Z")

</div>

Thank you, @lassoan, looking forward to this. Will it even detect when a new stable is available?

---

<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 8, 2022, 6:32pm UTC](https://discourse.slicer.org/t/enable-automatic-extension-update-check/25062/7 "2022-09-08T18:32:22Z")

</div>

Currently we only check for extension updates. However, now that we are increasing the frequency of application updates (the goal is to have a new stable release every quarter) it is becoming more important to check for application updates, too. I’m not sure that this update check will fit into Slicer-5.2, it mainly depends when the server API will be ready. The task is tracked in this issue:

> <https://github.com/Slicer/Slicer/issues/5502>
>
> \## Is your feature request related to a problem? Please describe.
> 
> We are tryi…ng to move towards releasing a new stable version quarterly. However, users may not be aware that a new Slicer core is available. Users also stop getting extension updates if they are not using the latest stable release.
> 
> \## Describe the solution you'd like
> 
> Implement a mechanism that checks if a new version of Slicer is available. The server that queries for new Slicer versions could also collect some statistics about which Slicer versions are used and how often.
> 
> \## Additional context
> 
> https://discourse.slicer.org/t/updated-slicer-binary-automatic-notification/766
> https://discourse.slicer.org/t/snapshot-release-updates-and-user-notification/16341
