enable the usability profile
This commit is contained in:
2
build.sh
2
build.sh
@@ -66,7 +66,7 @@ if [ ! -f "$HERE/build/jna-platform.jar" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$HERE/build/i2pfirefox.jar" ]; then
|
if [ ! -f "$HERE/build/i2pfirefox.jar" ]; then
|
||||||
wget -O "$HERE/build/i2pfirefox.jar" https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.16/i2pfirefox.jar
|
wget -O "$HERE/build/i2pfirefox.jar" https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.20/i2pfirefox.jar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd java
|
cd java
|
||||||
|
|||||||
@@ -51,11 +51,21 @@ public class WinLauncher {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
boolean privateBrowsing = false;
|
boolean privateBrowsing = false;
|
||||||
|
boolean usabilityMode = false;
|
||||||
|
boolean chromiumFirst = false;
|
||||||
if (args != null && args.length > 0) {
|
if (args != null && args.length > 0) {
|
||||||
logger.info("checking for private browsing");
|
logger.info("checking for private browsing");
|
||||||
if (args[0].equals("-private")) {
|
if (args[0].equals("-private")) {
|
||||||
privateBrowsing = true;
|
privateBrowsing = true;
|
||||||
logger.info("private browsing is true, profile will be discarded at end of session");
|
logger.info("Private browsing is true, profile will be discarded at end of session.");
|
||||||
|
}
|
||||||
|
if (args[0].equals("-chromium")) {
|
||||||
|
chromiumFirst = true;
|
||||||
|
logger.info("Chromium will be selected before Firefox.");
|
||||||
|
}
|
||||||
|
if (args[0].equals("-usability")) {
|
||||||
|
usabilityMode = true;
|
||||||
|
logger.info("Usability mode is true, using alternate extensions loadout.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,7 +88,9 @@ public class WinLauncher {
|
|||||||
if (i2pIsRunning()) {
|
if (i2pIsRunning()) {
|
||||||
logger.warning("I2P is already running");
|
logger.warning("I2P is already running");
|
||||||
I2PBrowser i2pBrowser = new I2PBrowser();
|
I2PBrowser i2pBrowser = new I2PBrowser();
|
||||||
System.out.println("i2pBrowser");
|
i2pBrowser.usability = usabilityMode;
|
||||||
|
i2pBrowser.chromiumFirst = chromiumFirst;
|
||||||
|
System.out.println("I2PBrowser");
|
||||||
i2pBrowser.launch(privateBrowsing);
|
i2pBrowser.launch(privateBrowsing);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user