aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortimoreo <contact@timoreo.fr>2022-11-16 14:26:52 +0100
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-05 15:05:17 -0700
commit54fb799d95faa3d646cfc835937e5fbdb10afa4d (patch)
tree30befcc3832038cdbdd43baebf691512bb66414b
parent565202c99004a13f4d6b9bad6ec1e0634fb280fb (diff)
downloadPrismLauncher-54fb799d95faa3d646cfc835937e5fbdb10afa4d.tar.gz
PrismLauncher-54fb799d95faa3d646cfc835937e5fbdb10afa4d.tar.bz2
PrismLauncher-54fb799d95faa3d646cfc835937e5fbdb10afa4d.zip
Fix command line args
Signed-off-by: timoreo <contact@timoreo.fr>
-rw-r--r--launcher/Application.cpp3
-rw-r--r--program_info/org.prismlauncher.PrismLauncher.desktop.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 0b1ab16c..6994d1ba 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -219,6 +219,9 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
{{"I", "import"}, "Import instance from specified zip (local path or URL)", "file"},
{"show", "Opens the window for the specified instance (by instance ID)", "show"}
});
+ // Has to be positional for some OS to handle that properly
+ parser.addPositionalArgument("urls","import the resource at the given url(s) (URL to modpack Zip / local Zip / curseforge:// modpack link)","[urls...]");
+
parser.addHelpOption();
parser.addVersionOption();
diff --git a/program_info/org.prismlauncher.PrismLauncher.desktop.in b/program_info/org.prismlauncher.PrismLauncher.desktop.in
index f08f2ba4..675e1f1f 100644
--- a/program_info/org.prismlauncher.PrismLauncher.desktop.in
+++ b/program_info/org.prismlauncher.PrismLauncher.desktop.in
@@ -10,4 +10,4 @@ Icon=org.prismlauncher.PrismLauncher
Categories=Game;ActionGame;AdventureGame;Simulation;
Keywords=game;minecraft;launcher;mc;multimc;polymc;
StartupWMClass=PrismLauncher
-MimeType=application/zip;application/x-modrinth-modpack+zip
+MimeType=application/zip;application/x-modrinth-modpack+zip;x-scheme-handler/curseforge;