add_paraview_auto_start: onStartup not called on mesa build

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}
)

Yes. It’s a GUI only thing.

Hi,

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

thanks

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.