We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8eec61 commit 005a68bCopy full SHA for 005a68b
Applications/shapeworks/Commands.cpp
@@ -369,8 +369,12 @@ void DeepSSMCommand::buildParser() {
369
370
bool DeepSSMCommand::execute(const optparse::Values& options, SharedCommandData& sharedData) {
371
// Create a non-gui QApplication instance
372
- int argc = 0;
373
- char** argv = nullptr;
+ int argc = 3;
+ char* argv[3];
374
+ argv[0] = const_cast<char*>("shapeworks");
375
+ argv[1] = const_cast<char*>("-platform");
376
+ argv[2] = const_cast<char*>("offscreen");
377
+
378
QApplication app(argc, argv);
379
380
// Handle project file: either from --name or first positional argument
0 commit comments