| 364 | } |
| 365 | |
| 366 | void LightscreenWindow::executeArguments(const QStringList &arguments) |
| 367 | { |
| 368 | // If we just have the default argument, call "--wake" |
| 369 | if (arguments.count() == 1 && (arguments.at(0) == qApp->arguments().at(0) || arguments.at(0).contains(QFileInfo(qApp->applicationFilePath()).fileName()))) { |
| 370 | executeArgument("--wake"); |
| 371 | return; |
| 372 | } |
| 373 | |
| 374 | for (auto argument : arguments) { |
| 375 | executeArgument(argument); |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | void LightscreenWindow::notify(const Screenshot::Result &result) |
| 380 | { |