Commit 29535153 authored by Volker Krause's avatar Volker Krause
Browse files

Make the import from temporary file option KIO-compatible

KIO::ApplicationLauncherJob will then automatically call this correctly.
parent a11a8b06
......@@ -224,7 +224,7 @@ int main(int argc, char **argv)
KAboutData::setApplicationData(aboutData);
QCommandLineParser parser;
QCommandLineOption isTemporaryOpt(QStringLiteral("delete-after-use"), QStringLiteral("Input file is a temporary file that needs to be deleted after importing."));
QCommandLineOption isTemporaryOpt(QStringLiteral("tempfile"), QStringLiteral("Input file is a temporary file and will be deleted after importing."));
parser.addOption(isTemporaryOpt);
aboutData.setupCommandLine(&parser);
parser.addPositionalArgument(QStringLiteral("file"), i18n("PkPass or JSON-LD file to import."));
......
......@@ -78,3 +78,4 @@ Comment[zh_CN]=旅行助理应用。
Terminal=false
MimeType=application/vnd.apple.pkpass;application/ld+json;application/pdf;text/calendar;text/html;application/json;message/rfc822;application/vnd.kde.itinerary;
Categories=Qt;KDE;Utility;
X-KDE-HasTempFileOption=true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment