Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Mine
Friday, March 30th, 2007 at 1:39:24pm UTC 

  1. #! /bin/sh /usr/share/dpatch/dpatch-run
  2. ## 82_prefs.dpatch by Mike Hommey <[email protected]>
  3. ##
  4. ## All lines beginning with `## DP:' are a description of the patch.
  5. ## DP: Fix font defaults.
  6. ## DP: Set javascript.options.showInConsole.
  7. ## DP: Set filename for general config file for locks and set the obscure
  8. ## DP: value to 0 so that the file needs not be "encrypted".
  9. ## DP: Workaround for freeze error with mail compose window after a couple
  10. ## DP: of hours of use. bz#307672
  11.  
  12.  
  13. --- iceape/modules/libpref/src/init/all.js      (revision 67)
  14. +++ iceape/modules/libpref/src/init/all.js      (local)
  15. @@ -52,7 +52,8 @@
  16.  pref("general.useragent.locale", "chrome://navigator/locale/navigator.properties");
  17.  pref("general.useragent.contentlocale", "chrome://navigator-region/locale/region.properties");
  18.  
  19. -pref("general.config.obscure_value", 13); // for MCD .cfg files
  20. +pref("general.config.obscure_value", 0); // for MCD .cfg files
  21. +pref("general.config.filename", "iceape.cfg");
  22.  
  23.  pref("browser.cache.disk.enable",           true);
  24.  pref("browser.cache.disk.capacity",         51200);
  25. @@ -439,6 +440,7 @@
  26.  pref("javascript.enabled",                  true);
  27.  pref("javascript.allow.mailnews",           false);
  28.  pref("javascript.options.strict",           false);
  29. +pref("javascript.options.showInConsole",    true);
  30.  
  31.  // advanced prefs
  32.  pref("security.enable_java",                true);
  33. @@ -1872,33 +1874,33 @@
  34.  
  35.  // th
  36.  
  37. -pref("font.name.serif.tr", "Times");
  38. -pref("font.name.sans-serif.tr", "Helvetica");
  39. -pref("font.name.monospace.tr", "Courier");
  40. +pref("font.name.serif.tr", "serif");
  41. +pref("font.name.sans-serif.tr", "sans-serif");
  42. +pref("font.name.monospace.tr", "monospace");
  43.  
  44.  pref("font.name.serif.x-baltic", "serif");
  45.  pref("font.name.sans-serif.x-baltic", "sans-serif");
  46.  pref("font.name.monospace.x-baltic", "monospace");
  47.  
  48. -pref("font.name.serif.x-central-euro", "Times");
  49. -pref("font.name.sans-serif.x-central-euro", "Helvetica");
  50. -pref("font.name.monospace.x-central-euro", "Courier");
  51. +pref("font.name.serif.x-central-euro", "serif");
  52. +pref("font.name.sans-serif.x-central-euro", "sans-serif");
  53. +pref("font.name.monospace.x-central-euro", "monospace");
  54.  
  55.  pref("font.name.serif.x-cyrillic", "serif");
  56.  pref("font.name.sans-serif.x-cyrillic", "sans-serif");
  57.  pref("font.name.monospace.x-cyrillic", "monospace");
  58.  
  59. -pref("font.name.serif.x-unicode", "Times");
  60. -pref("font.name.sans-serif.x-unicode", "Helvetica");
  61. -pref("font.name.monospace.x-unicode", "Courier");
  62. +pref("font.name.serif.x-unicode", "serif");
  63. +pref("font.name.sans-serif.x-unicode", "sans-serif");
  64. +pref("font.name.monospace.x-unicode", "monospace");
  65.  
  66. -pref("font.name.serif.x-user-def", "Times");
  67. -pref("font.name.sans-serif.x-user-def", "Helvetica");
  68. -pref("font.name.monospace.x-user-def", "Courier");
  69. +pref("font.name.serif.x-user-def", "serif");
  70. +pref("font.name.sans-serif.x-user-def", "sans-serif");
  71. +pref("font.name.monospace.x-user-def", "monospace");
  72.  
  73. -pref("font.name.serif.x-western", "Times");
  74. -pref("font.name.sans-serif.x-western", "Helvetica");
  75. -pref("font.name.monospace.x-western", "Courier");
  76. +pref("font.name.serif.x-western", "serif");
  77. +pref("font.name.sans-serif.x-western", "sans-serif");
  78. +pref("font.name.monospace.x-western", "monospace");
  79.  
  80.  pref("font.name.serif.zh-CN", "serif");
  81.  pref("font.name.sans-serif.zh-CN", "sans-serif");
  82. --- iceape/mailnews/mailnews.js
  83. +++ iceape/mailnews/mailnews.js
  84. @@ -339,7 +339,7 @@
  85.  
  86.  pref("mailnews.confirm.moveFoldersToTrash", true);
  87.  
  88. -pref("mailnews.reuse_message_window", true);
  89. +pref("mailnews.reuse_message_window", false);
  90.  pref("mailnews.reuse_thread_window2", false);
  91.  pref("mailnews.open_window_warning", 10); // warn user if they attempt to open more than this many messages at once
  92.  
  93. @@ -592,7 +592,7 @@
  94.  // see abCommon.js and ABSearchDialog.js
  95.  pref("mailnews.ui.advanced_directory_search_results.version", 1);                                         
  96.  //If set to a number greater than 0, msg compose windows will be recycled in order to open them quickly
  97. -pref("mail.compose.max_recycled_windows", 1);
  98. +pref("mail.compose.max_recycled_windows", 0);
  99.  
  100.  // true makes it so we persist the open state of news server when starting up the 3 pane
  101.  // this is costly, as it might result in network activity.
  102.  
  103.  
  104.  
  105.  
  106. #! /bin/sh /usr/share/dpatch/dpatch-run
  107. ## 85_syspref.dpatch by  <[email protected]>
  108. ##
  109. ## All lines beginning with `## DP:' are a description of the patch.
  110. ## DP: Add a syspref preferences directory.
  111.  
  112.  
  113. --- iceape/modules/libpref/src/nsPrefService.cpp
  114. +++ iceape/modules/libpref/src/nsPrefService.cpp
  115. @@ -755,6 +755,21 @@
  116.      NS_WARNING("Error parsing application default preferences.");
  117.    }
  118.  
  119. +  // Load files from defaults/syspref
  120. +  nsCOMPtr<nsIFile> SysPrefDir;
  121. +  rv = defaultPrefDir->GetParent(getter_AddRefs(SysPrefDir));
  122. +  NS_ENSURE_SUCCESS(rv, rv);
  123. +  rv = SysPrefDir->AppendNative(NS_LITERAL_CSTRING("syspref"));
  124. +  NS_ENSURE_SUCCESS(rv, rv);
  125. +  PRBool exists;
  126. +  if (NS_SUCCEEDED(SysPrefDir->Exists(&exists)) && exists) {
  127. +    rv = pref_LoadPrefsInDir(SysPrefDir, nsnull, 0);
  128. +    if (NS_FAILED(rv)) {
  129. +      NS_WARNING("Error parsing system default preferences.");
  130. +    }
  131. +
  132. }
  133. +
  134.    // xxxbsmedberg: TODO load default prefs from a category
  135.    // but the architecture is not quite there yet
  136.  

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right