Skip to content

Commit 005a68b

Browse files
committed
Use offscreen for deepssm command
1 parent a8eec61 commit 005a68b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Applications/shapeworks/Commands.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,12 @@ void DeepSSMCommand::buildParser() {
369369

370370
bool DeepSSMCommand::execute(const optparse::Values& options, SharedCommandData& sharedData) {
371371
// Create a non-gui QApplication instance
372-
int argc = 0;
373-
char** argv = nullptr;
372+
int argc = 3;
373+
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+
374378
QApplication app(argc, argv);
375379

376380
// Handle project file: either from --name or first positional argument

0 commit comments

Comments
 (0)