uname -a:
FreeBSD clk01a 7.0-CURRENT FreeBSD 7.0-CURRENT #13: Sat Dec 16 15:42:22 EST 2006 nicblais@clk01a:/usr/obj/usr/src/sys/CLK01A i386
I use Firefox as my browser and I have it in my configuration, it is also present in my JBidWatch.cfg but whenever I try to open an Ebay page or I test the browser in the configuration dialog, I get an error and no browser. "Override detected browser" is selected. According to the error log, it still tries to open netscape.
Error:
Thu Dec 21 23:10:24 GMT 2006: Launching browser
java.io.IOException: java.io.IOException: netscape: not found
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:464)
at BrowserLauncher.openURL(BrowserLauncher.java:586)
at JBConfig.launchBrowser(JBConfig.java:79)
at JConfigBrowserTab$2.actionPerformed(JConfigBrowserTab.java:127)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Logged In: YES
user_id=1374939
Originator: YES
Is there any chance that this is due to the OS detection mechanism? My best theory right would be that JBidWatcher is seeing my system as neither a Linux or a Windows system and using default browser value instead. Perhaps it should assume that a *BSD system should work like a Linux system.
Logged In: YES
user_id=19745
Originator: NO
Greetings,
Yes, this is an OS detection problem.
Here's how JBidwatcher chooses its browser, basically:
Get the 'os.name' system property from Java.
Truncate at the first space (' ') if there is one.
Look for a configuration entry of 'browser.launch.{truncated os.name}'
Launch that as the browser if possible.
If nothing else works, try to run 'netscape'.
public class OSName {
public static void main(String[] args) {
System.out.println(System.getProperty("os.name"));
}
}
Save that as 'OSName.java'.
prompt$ javac OSName.java
prompt$ java OSName
Make sure JBidwatcher is shut down, and then do the following:
Edit ~/.jbidwatcher/JBidWatch.cfg
Add the following to the end, replacing OS Name with the output of the above program:
browser.launch.{osname}={path to browser}
So for instance, if the OSName program comes back with:
FreeBSD
and you have Firefox at:
/usr/local/firefox/bin/firefox
you would add:
browser.launch.FreeBSD=/usr/local/firefox/bin/firefox
Remember to ignore anything after the first space. So if OSName comes back as:
FreeBSD 5.1
(for random instance), you would still just put in
browser.launch.FreeBSD
Give that a shot... Hopefully it'll help!
-- Morgan Schweers, CyberFOX!
Logged In: YES
user_id=1374939
Originator: YES
Success! As suggested, that did it:
browser.launch.FreeBSD=/usr/local/bin/firefox
Perhaps add FreeBSD in the OS detection mechanism in the next version of JBidWatcher? :)
Nice software BTW!
Logged In: YES
user_id=19745
Originator: NO
Greetings,
Bugs filed after 1.0 and with submitters are being juggled in terms of priority (9 is highest priority). I'm raising bugs filed with a submitter, post-1.0 to P6.
For everything else, bugs which are filed post-1.0, but without a submitter remain P5. Before 1.0 bugs with a submitter are becoming P4, and pre-1.0 bugs without a submitter name become P3.
Thanks for your patience, while I try to pare back the bug list to what may actually still be in the program. I may also start to close bugs which are referring to the same issue, leaving either the oldest, or the one with the most activity.
-- Morgan Schweers, CyberFOX!