packages 0015-Adjust-defaults-for-Fedora.patch
      Pages: < 1 >  DOWNLOAD      
From 6e70158158186b7ad1baba0d35b63108ad5a9830 Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak@...>
Date: Fri, 2 Apr 2010 16:16:52 +0200
Subject: [PATCH] Adjust defaults for Fedora

* Look for Eclipse JDT in Fedora location
* Disable update checks per default
* A bit saner defaults for web browser configuration
---
 .../impl/javaCompiler/eclipse/EclipseCompiler.java |    2 +-
 .../src/com/intellij/ide/GeneralSettings.java      |    5 ++++-
 .../updateSettings/impl/UpdateSettings.java        |    2 +-
 .../ide/browsers/BrowsersConfiguration.java        |    2 +-
 4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/java/compiler/impl/src/com/intellij/compiler/impl/javaCompiler/eclipse/EclipseCompiler.java b/java/compiler/impl/src/com/intellij/compiler/impl/javaCompiler/eclipse/EclipseCompiler.java
index 34876e2..3c9d634 100644
--- a/java/compiler/impl/src/com/intellij/compiler/impl/javaCompiler/eclipse/EclipseCompiler.java
+++ b/java/compiler/impl/src/com/intellij/compiler/impl/javaCompiler/eclipse/EclipseCompiler.java
@@ -52,7 +52,7 @@ public class EclipseCompiler extends ExternalCompiler {
   @NonNls private static final String PATH_TO_COMPILER_JAR = findJarPah();
 
   private static String findJarPah() {
-    File dir = new File(PathManager.getLibPath());
+    File dir = new File("/usr/lib/eclipse/dropins/jdt/plugins");
     File[] jars = dir.listFiles(new FilenameFilter() {
       public boolean accept(File dir, String name) {
         return name.startsWith("org.eclipse.jdt.core") && name.endsWith(".jar");
diff --git a/platform/platform-api/src/com/intellij/ide/GeneralSettings.java b/platform/platform-api/src/com/intellij/ide/GeneralSettings.java
index 071e547..4a9f310 100644
--- a/platform/platform-api/src/com/intellij/ide/GeneralSettings.java
+++ b/platform/platform-api/src/com/intellij/ide/GeneralSettings.java
@@ -95,6 +95,9 @@ public class GeneralSettings implements NamedJDOMExternalizable, ExportableAppli
     else if (SystemInfo.isMac) {
       myBrowserPath = "open";
     }
+    else if (SystemInfo.isLinux) {
+      myBrowserPath = "xdg-open";
+    }
     else {
       myBrowserPath = "";
     }
@@ -474,4 +477,4 @@ public class GeneralSettings implements NamedJDOMExternalizable, ExportableAppli
     }
     return oldCharsetSettingsHaveBeenRead;
   }
-}
\ No newline at end of file
+}
diff --git a/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateSettings.java b/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateSettings.java
index 06d96d2..dff7959 100644
--- a/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateSettings.java
+++ b/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateSettings.java
@@ -46,7 +46,7 @@ public class UpdateSettings implements PersistentStateComponent<Element> {
   @SuppressWarnings({"WeakerAccess", "CanBeFinal"})
   public JDOMExternalizableStringList myKnownUpdateChannels = new JDOMExternalizableStringList();
 
-  public boolean CHECK_NEEDED = true;
+  public boolean CHECK_NEEDED = false;
   public String CHECK_PERIOD = UpdateSettingsConfigurable.WEEKLY;
   public long LAST_TIME_CHECKED = 0;
 
diff --git a/xml/impl/src/com/intellij/ide/browsers/BrowsersConfiguration.java b/xml/impl/src/com/intellij/ide/browsers/BrowsersConfiguration.java
index 5aab88c..0aa9588 100644
--- a/xml/impl/src/com/intellij/ide/browsers/BrowsersConfiguration.java
+++ b/xml/impl/src/com/intellij/ide/browsers/BrowsersConfiguration.java
@@ -55,7 +55,7 @@ public class BrowsersConfiguration implements ApplicationComponent, PersistentSt
         return new FirefoxSettings();
       }
     },
-    CHROME(XmlBundle.message("browsers.chrome"), "chrome", null, null, IconLoader.getIcon("/xml/browsers/chrome16.png"));
+    CHROME(XmlBundle.message("browsers.chrome"), "chrome", "chromium-browser", null, IconLoader.getIcon("/xml/browsers/chrome16.png"));
 
     private final String myName;
     private final String myWindowsPath;
-- 
1.7.0.1