mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-01 22:59:42 +00:00
23 lines
644 B
C++
23 lines
644 B
C++
#include <QCoreApplication>
|
|
#include <QDBusConnection>
|
|
#include <QDBusMessage>
|
|
//#include <QCommandLineParser>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
Q_UNUSED(argc);
|
|
Q_UNUSED(argv);
|
|
//QCoreApplication a(argc, argv);
|
|
//QCommandLineParser parser;
|
|
QDBusMessage m = QDBusMessage::createMethodCall("org.dharkael.Flameshot",
|
|
"/",
|
|
"",
|
|
"createCapture"
|
|
);
|
|
|
|
QDBusConnection::sessionBus().call(m);
|
|
|
|
|
|
//return a.exec();
|
|
|
|
}
|