diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-17 09:24:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 09:24:35 +0200 |
commit | 85f36ebed7e1295547cd2324d1baf7834be89c31 (patch) | |
tree | cb1482f2724875b56780bb1083015db26143e5d4 /program_info | |
parent | c88088c91a92a371a9bc2b7384c2897157772b7e (diff) | |
parent | 5e2d1ffdfbb3f673c063029c9a6c55071cba160a (diff) | |
download | PrismLauncher-85f36ebed7e1295547cd2324d1baf7834be89c31.tar.gz PrismLauncher-85f36ebed7e1295547cd2324d1baf7834be89c31.tar.bz2 PrismLauncher-85f36ebed7e1295547cd2324d1baf7834be89c31.zip |
Merge pull request #981 from Ryex/curseforge-url-handle
Diffstat (limited to 'program_info')
-rw-r--r-- | program_info/org.prismlauncher.PrismLauncher.desktop.in | 2 | ||||
-rw-r--r-- | program_info/win_install.nsi.in | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/program_info/org.prismlauncher.PrismLauncher.desktop.in b/program_info/org.prismlauncher.PrismLauncher.desktop.in index 20fabe9d..816c0059 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;mc; StartupWMClass=PrismLauncher -MimeType=application/zip;application/x-modrinth-modpack+zip +MimeType=application/zip;application/x-modrinth-modpack+zip;x-scheme-handler/curseforge; diff --git a/program_info/win_install.nsi.in b/program_info/win_install.nsi.in index d3b5c256..cb7b0935 100644 --- a/program_info/win_install.nsi.in +++ b/program_info/win_install.nsi.in @@ -363,6 +363,10 @@ Section "@Launcher_DisplayName@" ; Write the installation path into the registry WriteRegStr HKCU Software\@Launcher_CommonName@ "InstallDir" "$INSTDIR" + ; Write the URL Handler into registry for curseforge + WriteRegStr HKCU Software\Classes\curseforge "URL Protocol" "" + WriteRegStr HKCU Software\Classes\curseforge\shell\open\command "" '"$INSTDIR\@Launcher_APP_BINARY_NAME@.exe" "%1"' + ; Write the uninstall keys for Windows ${GetParameters} $R0 ${GetOptions} $R0 "/NoUninstaller" $R1 |