OpenToonz - An open-source full-featured 2D animation creation software
C
#common #bug #convert: fix command line convertion of PLI for linux (#2657)
Ivan Mahonin3316edbab000
diff --git a/toonz/sources/tconverter/tconverter.cpp b/toonz/sources/tconverter/tconverter.cppindex ede0a425d..3a597c669 100644--- a/toonz/sources/tconverter/tconverter.cpp+++ b/toonz/sources/tconverter/tconverter.cpp@@ -29,6 +29,10 @@#include "tvectorrenderdata.h"#include "tofflinegl.h"+#if defined(LINUX)+#include <QGuiApplication>+#endif+using namespace std;using namespace TCli;@@ -355,6 +359,10 @@ void convert(const TFilePath &source, const TFilePath &dest,//------------------------------------------------------------------------int main(int argc, char *argv[]) {+#if defined(LINUX)+ QGuiApplication app(argc, argv);+#endif+TEnv::setRootVarName(rootVarName);TEnv::setSystemVarPrefix(systemVarPrefix);TFilePath fp = TEnv::getStuffDir();