# How to disable the splash screen before launching the program

**URL:** <https://discourse.slicer.org/t/how-to-disable-the-splash-screen-before-launching-the-program/29928>\
**Category:** Development\
**Created:** [June 9, 2023, 3:32am UTC](https://discourse.slicer.org/t/how-to-disable-the-splash-screen-before-launching-the-program/29928 "2023-06-09T03:32:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnzzll](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nnzzll/32/16350_2.png) [@nnzzll](https://discourse.slicer.org/u/nnzzll)\
**Post date:** [June 9, 2023, 3:32am UTC](https://discourse.slicer.org/t/how-to-disable-the-splash-screen-before-launching-the-program/29928/1 "2023-06-09T03:32:16Z")

</div>

I am developing a custom app of Slicer and I need to setup the splash screen defined by user’s choice.

I’ve read this post :[change-the-splash-screen-of-slicer-upon-launch](https://discourse.slicer.org/t/change-the-splash-screen-of-slicer-upon-launch/18478), noticed that there are two splash screen during launch. I replaced the second splash screen successfully but I don’t know how to disable the first splash screen in my own code.

I know that I can modify the `XXXLauncherSettings.ini` but it is under the `Slicer-build` directory which can’t (and shouldn’t) be tracked by git.

And from this post:[modify-value-in-slicerlaunchersettings-ini-from-application](https://discourse.slicer.org/t/modify-value-in-slicerlaunchersettings-ini-from-application/23000) I know I can modify the `.ini` file in application but at that time the application is already launched. What I need is to modify the value before launching the program.

---

<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:** [June 16, 2023, 2:54pm UTC](https://discourse.slicer.org/t/how-to-disable-the-splash-screen-before-launching-the-program/29928/2 "2023-06-16T14:54:35Z")

</div>

You can replace the launcher splashscreen image in your custom application.

Disabling the launcher splashscreen might not be a good idea because it may take a couple of seconds for the SlicerApp-real splashscreen to appear and the user may not know what’s happening in the meantime and may start the application repeatedly. However, if you want to do it then you can do that by modifying the launcher configuration [as it is done for the Python launcher](https://github.com/Slicer/Slicer/blob/c3d74d68839078ec02b1053d4ba413643e84630c/SuperBuild/python_configure_python_launcher.cmake#L239).

---

<div class="post-metadata">

**Author:** ![apparrilla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/apparrilla/32/9230_2.png) [@apparrilla](https://discourse.slicer.org/u/apparrilla)\
**Post date:** [October 3, 2024, 10:16pm UTC](https://discourse.slicer.org/t/how-to-disable-the-splash-screen-before-launching-the-program/29928/3 "2024-10-03T22:16:01Z")

</div>

Sorry @lassoan , Do you mean there is a Cmake Flag “SPLASHSCREEN\_DISABLED” for CustomApps?

---

<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:** [November 7, 2024, 5:48am UTC](https://discourse.slicer.org/t/how-to-disable-the-splash-screen-before-launching-the-program/29928/4 "2024-11-07T05:48:30Z")

</div>

The CMake option name is `SLICERAPP_SPLASHSCREEN_ENABLED` and it is used [here](https://github.com/Slicer/Slicer/blob/fefe4a3401b557f0aec9628c4be2f92fcc4e23eb/CMake/SlicerMacroBuildApplication.cmake#L700-L710). If you use the Slicer Custom Application Template then you may be able to set the option in [slicer-application-properties.cmake](https://github.com/KitwareMedical/SlicerCAT/blob/main/Applications/SlicerCATApp/slicer-application-properties.cmake).
