From 302c08cb248c44ec5a261b6e8efba91a04c38e2d Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 22 Nov 2020 11:50:52 +0100 Subject: [PATCH] Make list unique --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 575a13f..8e5b14f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -190,6 +190,8 @@ int main(int argc, char *argv[]) // On FreeBSD: "/home/user/.local/share/applications", "/usr/local/share/applications", "/usr/share/applications" locationsContainingApps.append(QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation)); + locationsContainingApps.removeDuplicates(); // Make unique + if(args.isEmpty()){ qDebug() << "USAGE:" << argv[0] << " []" ; exit(1);