# Factory extensions with built custom SlicerApp\_APPLICATION\_NAME

**URL:** <https://discourse.slicer.org/t/factory-extensions-with-built-custom-slicerapp-application-name/16571>\
**Category:** Development\
**Created:** [March 16, 2021, 1:23pm UTC](https://discourse.slicer.org/t/factory-extensions-with-built-custom-slicerapp-application-name/16571 "2021-03-16T13:23:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbordignon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fbordignon/32/5269_2.png) [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Post date:** [March 16, 2021, 1:23pm UTC](https://discourse.slicer.org/t/factory-extensions-with-built-custom-slicerapp-application-name/16571/1 "2021-03-16T13:23:59Z")

</div>

Hi guys, we’ve finally surrendered and started to build Slicer for our application (GeoSlicer - petrophysics area). I’ve had success in building it with Windows and adding the customizations needed on the source code. We’ve cloned the oficial repo and based our changes on the commits of the stable releases i.e., we’ve created a branch from [002be18](https://github.com/Slicer/Slicer/commit/002be18086c3054bb834dd674401ba624629e4f6) for the 4.11.20200930 build  
I’ve forced the slicer revision to be able to download the factory extensions with

`Slicer_FORCED_REVISION "29402"`

I believe it is Ok to do that, as long as we keep the changes mostly aesthetical and/or small modifications we could use the factory extensions with no problem. The problem arose when I tried to use a custom App name:

`set(SlicerApp_APPLICATION_NAME "GeoSlicer")`

We had a problem with SlicerJupyter, for example. The extension could not load because of some paths containing GeoSlicer instead of Slicer. I’ve added some paths to the .ini file and could load the extensions, but had some other issues down the road.

It would be nice to have the extensions available for users, no matter the appname, but we can understand if compiling them is the only option. Do you have any other idea that can make it work?  
Thanks

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [March 16, 2021, 1:59pm UTC](https://discourse.slicer.org/t/factory-extensions-with-built-custom-slicerapp-application-name/16571/2 "2021-03-16T13:59:39Z")

</div>

Quick question:

Did you use the [custom application template](https://blog.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/) to create your custom app, or did you modify Slicer directly?

Also, if you could share some error messages indicating the paths that are not loading correctly, that would be great.

---

<div class="post-metadata">

**Author:** ![fbordignon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fbordignon/32/5269_2.png) [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Post date:** [March 16, 2021, 2:05pm UTC](https://discourse.slicer.org/t/factory-extensions-with-built-custom-slicerapp-application-name/16571/3 "2021-03-16T14:05:19Z")

</div>

I’ve modified Slicer directly. I guess I was asking for trouble. Let me try SlicerCAT and report back. Thanks

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [March 16, 2021, 2:23pm UTC](https://discourse.slicer.org/t/factory-extensions-with-built-custom-slicerapp-application-name/16571/4 "2021-03-16T14:23:31Z")

</div>

So the custom app template is the recommended method, but it is also possible that we need to make some modification to SlicerJupyter to have it work nicely with a custom app.
