Skip to content

Commit 6c87901

Browse files
committed
Fix google search command line
1 parent deb5ff4 commit 6c87901

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

uis/src/com/biglybt/ui/swt/utils/SearchSubsUtils.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,8 @@ private static void launchURL(String s) {
305305
Field field = Program.class.getDeclaredField("command");
306306
field.setAccessible(true);
307307
String command = (String) field.get(program);
308-
command = command.replaceAll("%[1lL]", Matcher.quoteReplacement(s));
309-
command = command.replace(" --", "");
310-
PluginInitializer.getDefaultInterface().getUtilities().createProcess(command + " -incognito");
308+
command = command.replaceAll("%[1lL]", Matcher.quoteReplacement("--incognito "+s));
309+
PluginInitializer.getDefaultInterface().getUtilities().createProcess( command );
311310
} catch (Exception e1) {
312311
e1.printStackTrace();
313312
Utils.launch(s);

0 commit comments

Comments
 (0)