# add\_paraview\_auto\_start: onStartup not called on mesa build

**URL:** https://discourse.paraview.org/t/add-paraview-auto-start-onstartup-not-called-on-mesa-build/164
**Category:** Development
**Created:** [June 12, 2018, 5:08pm UTC](https://discourse.paraview.org/t/add-paraview-auto-start-onstartup-not-called-on-mesa-build/164 "2018-06-12T17:08:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![michal.wozniak](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/848f3c/32.png) [@michal.wozniak](https://discourse.paraview.org/u/michal.wozniak)
#### Post date: [June 12, 2018, 5:09pm UTC](https://discourse.paraview.org/t/add-paraview-auto-start-onstartup-not-called-on-mesa-build/164/1 "2018-06-12T17:09:00Z")

</div>

Hi,

does the add\_paraview\_auto\_start process depend on the GUI ?

I am trying to create a plugin that will create an instance of a custom class during the lunch. When I use the GUI, everything is working but when I’m using pvbatch, it’s doing nothing!

classStarter::onStartup() is never called

add\_paraview\_auto\_start(  
IFACES IFACE\_SRCS  
CLASS\_NAME  
StartupStarter  
STARTUP onStartup  
SHUTDOWN onShutdown  
)

add\_paraview\_plugin(StartupPlugin “1.0”  
REQUIRED\_ON\_SERVER  
GUI\_INTERFACES  
${IFACES}  
SOURCES  
StartupStarter.cxx  
Startup.cxx  
${IFACE\_SRCS}  
${MOC\_SRCS}  
)

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [June 12, 2018, 5:11pm UTC](https://discourse.paraview.org/t/add-paraview-auto-start-onstartup-not-called-on-mesa-build/164/2 "2018-06-12T17:11:59Z")

</div>

> [@michal.wozniak](#):
>
> does the add\_paraview\_auto\_start process depend on the GUI ?

Yes. It’s a GUI only thing.

---

<div class="post-metadata">

### Author: ![michal.wozniak](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/848f3c/32.png) [@michal.wozniak](https://discourse.paraview.org/u/michal.wozniak)
#### Post date: [June 12, 2018, 7:09pm UTC](https://discourse.paraview.org/t/add-paraview-auto-start-onstartup-not-called-on-mesa-build/164/3 "2018-06-12T19:09:23Z")

</div>

Hi,

Is there a way to start a plugin without this macro?

thanks

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [June 12, 2018, 9:55pm UTC](https://discourse.paraview.org/t/add-paraview-auto-start-onstartup-not-called-on-mesa-build/164/4 "2018-06-12T21:55:35Z")

</div>

What do intend to do in this “start”? You can always just have a static singleton that gets instantiated when the library is loaded and do your “init” there.
