sleep 2 seconds before waiting? I have no idea why Windows thinks it's exit 0
Former-commit-id: 629162372e
Former-commit-id: 407979b7ddfed5415842bac4a457d2872164a666
This commit is contained in:
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
GITHUB_USER=eyedeekay
|
GITHUB_USER=eyedeekay
|
||||||
GITHUB_REPO=i2p.plugins.firefox
|
GITHUB_REPO=i2p.plugins.firefox
|
||||||
GITHUB_NAME="Which fixes a Windows-specific bug"
|
GITHUB_NAME="Which adds the ability to pass the -private flag to the command line to launch a private browser instance."
|
||||||
GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
||||||
GITHUB_TAG=0.0.14
|
GITHUB_TAG=0.0.15
|
||||||
ant distclean
|
ant distclean
|
||||||
ant jar freeZip
|
ant jar freeZip
|
||||||
github-release release --user "${GITHUB_USER}" \
|
github-release release --user "${GITHUB_USER}" \
|
||||||
|
@ -452,6 +452,7 @@ public class I2PChromium {
|
|||||||
try{
|
try{
|
||||||
System.out.println(pb.command());
|
System.out.println(pb.command());
|
||||||
Process p = pb.start();
|
Process p = pb.start();
|
||||||
|
sleep(2000);
|
||||||
System.out.println("I2PChromium");
|
System.out.println("I2PChromium");
|
||||||
try{
|
try{
|
||||||
System.out.println("Waiting for I2PChromium to close...");
|
System.out.println("Waiting for I2PChromium to close...");
|
||||||
@ -488,5 +489,13 @@ public class I2PChromium {
|
|||||||
System.out.println("I2PChromium");
|
System.out.println("I2PChromium");
|
||||||
I2PChromium i2pChromium = new I2PChromium();
|
I2PChromium i2pChromium = new I2PChromium();
|
||||||
i2pChromium.launch(privateBrowsing);
|
i2pChromium.launch(privateBrowsing);
|
||||||
}
|
}
|
||||||
|
private static void sleep(int millis) {
|
||||||
|
try {
|
||||||
|
Thread.sleep(millis);
|
||||||
|
} catch (InterruptedException bad) {
|
||||||
|
bad.printStackTrace();
|
||||||
|
throw new RuntimeException(bad);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -415,6 +415,7 @@ public class I2PFirefox {
|
|||||||
System.out.println(pb.command());
|
System.out.println(pb.command());
|
||||||
Process p = pb.start();
|
Process p = pb.start();
|
||||||
System.out.println("I2PFirefox");
|
System.out.println("I2PFirefox");
|
||||||
|
sleep(2000);
|
||||||
try{
|
try{
|
||||||
System.out.println("Waiting for I2PFirefox to close...");
|
System.out.println("Waiting for I2PFirefox to close...");
|
||||||
int exit = p.waitFor();
|
int exit = p.waitFor();
|
||||||
@ -452,5 +453,14 @@ public class I2PFirefox {
|
|||||||
System.out.println("I2PFirefox");
|
System.out.println("I2PFirefox");
|
||||||
I2PFirefox i2pFirefox = new I2PFirefox();
|
I2PFirefox i2pFirefox = new I2PFirefox();
|
||||||
i2pFirefox.launch(privateBrowsing);
|
i2pFirefox.launch(privateBrowsing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void sleep(int millis) {
|
||||||
|
try {
|
||||||
|
Thread.sleep(millis);
|
||||||
|
} catch (InterruptedException bad) {
|
||||||
|
bad.printStackTrace();
|
||||||
|
throw new RuntimeException(bad);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user