From 668066f1910a694b874271622bcf42ac0dff7141 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 30 Jun 2016 22:18:18 -0400 Subject: Setup lumina-fileinfo that that it can be used to create brand-new application registrations within the user's local applications dir. Also have it install it's own .desktop registrations on the system at install time. --- src-qt5/desktop-utils/lumina-fileinfo/main.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src-qt5/desktop-utils/lumina-fileinfo/main.cpp') diff --git a/src-qt5/desktop-utils/lumina-fileinfo/main.cpp b/src-qt5/desktop-utils/lumina-fileinfo/main.cpp index f8ba3620..394ac579 100644 --- a/src-qt5/desktop-utils/lumina-fileinfo/main.cpp +++ b/src-qt5/desktop-utils/lumina-fileinfo/main.cpp @@ -18,11 +18,9 @@ int main(int argc, char ** argv) //Read the input variables QString path = ""; QString flag = ""; - if (argc==2) { - path = QString::fromLocal8Bit(argv[1]); - }else if (argc==3) { - flag = QString::fromLocal8Bit(argv[1]); - path = QString::fromLocal8Bit(argv[2]); + for(int i=1; i"; - qDebug() << msg.join("\n"); + qDebug() << "ERROR: Invalid input arguments"; + qDebug() << "Usage: \"lumina-fileinfo [-application | -link] [file]"; return 1; } -} \ No newline at end of file +} -- cgit