13 #include <QTranslator>
32 int main(
int argc,
char *argv[])
40 constexpr
const char *WEB_SECURITY =
"--disable-web-security";
41 constexpr
const char *SECCOMP_SECURITY =
"--disable-seccomp-filter-sandbox";
42 std::vector<char*> newArgv(argv, argv + argc);
43 newArgv.push_back(const_cast<char*>(WEB_SECURITY));
44 newArgv.push_back(const_cast<char*>(SECCOMP_SECURITY));
45 newArgv.push_back(
nullptr);
46 int newArgc = argc + 2;
53 for(
int i = 0; i < argc; ++i)
55 const QString &arg = QString::fromLocal8Bit(argv[i]);
56 if(ttk.argumentValid(arg))
89 QTranslator *translator =
new QTranslator(&app);
90 if(!translator->load(ts))
96 app.installTranslator(translator);
The class of the process client.
The class of the process server.
void execute(const QStringList &args) const
The class of the app main widget.
TTK_MODULE_EXPORT void killProcessByName(const QString &process, bool more=false)
int main(int argc, char *argv[])
The class of the ttk initialization.
The class of the initialize module.
bool configVersionCheck() const noexcept
The class of the ttk application.
#define TTK_RECORD_DATA_FILE
#define TTK_INFO_STREAM(msg)
#define MAKE_TRANSFORM_NAME
The class of the app run time manager.
TTK_MODULE_EXPORT void initialize(TTK::Attribute attr)
static void cleanupCache()
void execute(const QStringList &args) const
QStringList translator() const
#define TTK_ERROR_STREAM(msg)
The class of the app mpris main widget.