Categories
FlickrFan

FlickrFan – Stop Firefox (or Safari) from starting up

When FlickrFan starts it makes sure that your default browser is running.
Determining what your default browser is (on the Mac) isn’t all that easy.

The “open” command knows what it is.

in photoFanThread.script

if system.environment.ismac {
  «webbrowser.launchMacBrowser () // [001]
  // [001] use the system utility
  sys.unixShellCommand("open " + homeurl) // [001]
};
photoFanSuite.init ();
system.temp.photoFan.flStarted = true;
// [001] we have already "opened" the URL on a Mac
// [001] don't do it again
if not system.environment.ismac {
  webbrowser.openurl (homeurl)
};
webbrowser.bringtofront ();
photoFanSuite.background.everyHour () //do a scan on startup