Skip to content

Commit 8258293

Browse files
slipherslipher
slipher
authored andcommitted
Use the -connect option for unv:// protocol handlers
1 parent a9c0e47 commit 8258293

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/unvanquished.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Comment=FPS/RTS Game - Aliens vs. Humans
55
Icon=unvanquished
66
Terminal=false
77
Type=Application
8-
Exec=%1/daemon %U
8+
Exec=%1/daemon -connect %U
99
Categories=Game;ActionGame;StrategyGame;
1010
MimeType=x-scheme-handler/unv

win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ bool install()
142142
setRegistryKey("HKEY_CLASSES_ROOT\\unv", "Default", "URL: Unvanquished Protocol");
143143
setRegistryKey("HKEY_CLASSES_ROOT\\unv", "URL Protocol", "");
144144
setRegistryKey("HKEY_CLASSES_ROOT\\unv\\shell\\open\\command", "Default",
145-
quotedExecutablePath + " -pakpath " + quotedInstallPath + " +connect \"%1\"");
145+
quotedExecutablePath + " -pakpath " + quotedInstallPath + " -connect \"%1\"");
146146

147147
// Create a start menu shortcut
148148
// By default, install it to the users's start menu, unless they are installing

0 commit comments

Comments
 (0)