// XULRunner settings
pref("toolkit.defaultChromeURI", "chrome://emusic/content/hidden.xul");
// pref("toolkit.defaultChromeURI", "chrome://emusic/content/startup.xul");
pref("browser.chromeURL", "chrome://emusic/content/hidden.xul");
//pref("toolkit.singletonWindowType", "emusic:window");

pref("general.useragent.vendor", "eMusic Download Manager");
pref("general.useragent.vendorSub", "4.0");
pref("general.useragent.vendorComment", "http://www.emusic.com/");
pref("general.useragent.extra.notfox", "(like Firefox/2.0.0.21)");

pref("eMusic.majorRevision", "");

// Download Manager Specific Settings
pref("eMusic.download.dir", "");
pref("eMusic.download.downloadDir", "");
pref("eMusic.download.folderList", 2);
pref("eMusic.download.useDownloadDir", true);

pref("eMusic.download.retention", 2);

pref("eMusic.download.max-connections", 1);

pref("browser.download.show_plugins_in_list", true);
pref("browser.download.hide_plugins_without_extensions", true);

pref("browser.cache.disk.capacity", 4096);
pref("browser.cache.memory.capacity", 4096);

pref("eMusic.last-selected.0", -1);
pref("eMusic.last-selected.1", -1);
pref("eMusic.last-selected.2", -1);

pref("plugin.disable_full_page_plugin_for_types", "application/vnd.emusic-emusic_list,audio/x-mpegurl,audio/mpeg,audio/x-wav");

pref("eMusic.defaultHomePage", "http://www.emusic.com/?show");
pref("eMusic.defaultServer", "http://www.emusic.com/");
pref("eMusic.developerHomepage", "http://emusic.mozdev.org/?ver=%VERSION%&build=%APPBUILDID%&os=%OS%&target=%TARGET%");
pref("eMusic.developerFeedback", "contact/download.html?ver=%VERSION%&build=%APPBUILDID%&os=%OS%&target=%TARGET%");

pref("eMusic.defaultSearchURL", "search.html?mode=x&QT=");

pref("eMusic.defaultFREF", "702514");

pref("eMusic.defaultMediaSync", "iTunes");
pref("eMusic.defaultMediaPlayer", "DefaultPlayer");
pref("eMusic.defaultMediaPlayerCustom", "");
pref("eMusic.defaultMediaPlayerObj", "DefaultPlayer");
pref("eMusic.defaultMediaPlayer.Linux", "/usr/bin/totem");

pref("eMusic.itunes.playlist.enabled", true);
pref("eMusic.pauseSyncing", false);

pref("eMusic.FileNamingTemplate", "artist_number_track"); //album - artist - number - track
pref("eMusic.FileNamingSeparator", "_");
pref("eMusic.FileNamingOrder", "fnArtist|fnAlbum|fnTrackNum|fnTrackTitle|");

pref("eMusic.alerts.slideIncrementTime", 50);
pref("eMusic.alerts.totalOpenTime", 3000);

pref("eMusic.CreateArtistDirectory", true);
pref("eMusic.CreateAlbumDirectory", true);
pref("eMusic.AutoClearCancelled", false);
pref("eMusic.QuitWhenDone", false);

pref("eMusic.template.artist", true);
pref("eMusic.template.album", false);
pref("eMusic.template.number", true);
pref("eMusic.template.track", true);

pref("eMusic.templateFile", "chrome://emusic/locale/info.html");
pref("eMusic.templateFileAudioBooks", "chrome://emusic/locale/info_audiobooks.html");

pref("eMusic.preferences.general.selectedTabIndex", 0);

pref("eMusic.saveAlbumArt", true);
pref("eMusic.showAlerts", true);

pref("eMusic.firstrun", true);
pref("eMusic.debugMode", false);

pref("eMusic.currentDeck", 1);
pref("eMusic.downloadDeck", 1);
pref("eMusic.cmdLineValue", "");

// Basic Settings
pref("browser.download.dir", "");
pref("browser.download.folderList", 2);
pref("browser.download.useDownloadDir", false);
pref("browser.download.manager.showAlertOnComplete", false);
pref("browser.download.manager.showWhenStarting", true);
pref("browser.download.manager.useWindow", true);
pref("browser.download.manager.closeWhenDone", false);
pref("browser.download.manager.showAlertInterval", 2000);
pref("browser.download.manager.retention", 2);
pref("browser.download.manager.openDelay", 0);

pref("browser.download.manager.addToRecentDocs", false);

pref("alerts.slideIncrement", 1);
pref("alerts.slideIncrementTime", 10);
pref("alerts.totalOpenTime", 4000);
pref("alerts.height", 50);

pref("general.autoScroll", false);
pref("general.smoothScroll", false);

pref("signon.rememberSignons", true);
pref("signon.expireMasterPassword", false);
pref("signon.SignonFileName", "signons.txt");

pref("dom.max_chrome_script_run_time", 60);
pref("dom.max_script_run_time", 30);

pref('extensions.minimizetotray.always', true);
pref('extensions.minimizetotray.minimize-on-close', true);
pref('extensions.minimizetotray.two-click-restore', false);

pref("extensions.growl.initialized.notifications", false);

// App update prefs
pref("eMusic.update.enabled", true);
pref("eMusic.update.url", "http://www.emusic.com/apps/dlm/upgrade.xml?ver=%VERSION%&build=%APPBUILDID%&os=%OS%&target=%TARGET%");
pref("eMusic.update.interval", 86400000);

// Default Extensions/Themes Prefs
pref("extensions.update.url", "chrome://emusic/locale/emusic.properties");
pref("extensions.getMoreExtensionsURL", "chrome://emusic/locale/emusic.properties");
pref("extensions.getMoreThemesURL", "chrome://emusic/locale/emusic.properties");
pref("extensions.getMorePluginsURL", "chrome://emusic/locale/emusic.properties");
pref("xpinstall.whitelist.add", "www.emusic.com");
pref("xpinstall.whitelist.add.103", "emusic.mozdev.org");

pref("extensions.blocklist.enabled", false);

pref("extensions.update.enabled", true);
pref("extensions.update.interval", 86400);
pref("extensions.dss.enabled", false);
pref("extensions.dss.switchPending", false);
pref("extensions.ignoreMTimeChanges", false);
pref("extensions.logging.enabled", false);
pref("general.skins.selectedSkin", "classic/1.0");

// Define warnings and other protocol prefs
pref("security.warn_entering_secure", false);
pref("security.warn_leaving_secure", false);
pref("security.warn_submit_insecure", false);

pref("security.enable_java", false);

pref("network.dns.disableIPv6", true);

// Enable pipelining for improved performance:
pref("network.http.pipelining", true);
pref("network.http.proxy.pipelining", true);
pref("network.http.pipelining.firstrequest", true);
pref("network.http.pipelining.maxrequests", 8);

pref("network.protocol-handler.warn-external.http", false);
pref("network.protocol-handler.warn-external.https", false);
pref("network.protocol-handler.warn-external.ftp", false);
pref("network.protocol-handler.warn-external.mailto", false);
pref("network.protocol-handler.warn-external.news", true);
pref("network.protocol-handler.warn-external.snews", true);
pref("network.protocol-handler.warn-external.nntp", true);
pref("network.protocol-handler.warn-external.emusic", false);
pref("network.protocol-handler.warn-external.chrome", false);

pref("network.protocol-handler.external.mailto", true);
pref("network.protocol-handler.external.news", true);
pref("network.protocol-handler.external.snews", true);
pref("network.protocol-handler.external.nntp", true);

pref("accessibility.typeaheadfind", true);
pref("accessibility.typeaheadfind.flashBar", 0);
pref("accessibility.typeaheadfind.timeout", 3000);
pref("accessibility.typeaheadfind.linksonly", false);
pref("accessibility.typeaheadfind.startlinksonly", false);

// Small UI optimization tweaks
pref("config.trim_on_minimize", false);
pref("nglayout.initialpaint.delay", 0);
pref("ui.submenuDelay", 0);
pref("browser.display.show_image_placeholders", true);

pref("content.notify.ontimer", true);
pref("content.notify.interval", 100);
pref("content.notify.backoffcount", 200);
pref("content.max.tokenizing.time", 3000000);
pref("content.maxtextrun", 8191);

// Disable Smooth Scrolling (found it faster to have this off)
pref("general.smoothScroll", false);

// debug preferences
pref("javascript.options.showInConsole", true);
pref("javascript.options.strict", true);
pref("browser.xul.error_pages.enabled", true);
pref("dlm_itunes.logging.enabled", false);
pref("dlm_wmp.logging.enabled", false);
pref("dlm_winamp.logging.enabled", false);
pref("browser.dom.window.dump.enabled", false);
// debug: end
