Skip to content

Commit

Permalink
Make list unique
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Nov 22, 2020
1 parent 75e3917 commit 302c08c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] << "<application to be launched> [<arguments>]" ;
exit(1);
Expand Down

0 comments on commit 302c08c

Please sign in to comment.