* Add patch 03_external_apps to change the default settings for some
[debian/jabref.git] / debian / patches / 03_external_apps.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 03_external_apps.dpatch by  <gregor+debian@comodo.priv.at>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Change the default path to some external applications.
6
7 @DPATCH@
8 diff -urNad jabref~/src/java/net/sf/jabref/JabRefPreferences.java jabref/src/java/net/sf/jabref/JabRefPreferences.java
9 --- jabref~/src/java/net/sf/jabref/JabRefPreferences.java       2007-02-02 14:51:14.000000000 +0100
10 +++ jabref/src/java/net/sf/jabref/JabRefPreferences.java        2007-04-27 16:18:43.000000000 +0200
11 @@ -97,10 +97,12 @@
12                         defaults.put("psviewer", "cmd.exe /c start /b");
13                         defaults.put("htmlviewer", "cmd.exe /c start /b");
14                         defaults.put("lookAndFeel", "com.jgoodies.plaf.windows.ExtWindowsLookAndFeel");
15 +                       defaults.put("winEdtPath", "C:\\Program Files\\WinEdt Team\\WinEdt\\WinEdt.exe");
16 +                       defaults.put("latexEditorPath", "C:\\TEMP\\Led.exe");
17                 } else {
18 -                       defaults.put("pdfviewer", "acroread");
19 +                       defaults.put("pdfviewer", "gv");
20                         defaults.put("psviewer", "gv");
21 -                       defaults.put("htmlviewer", "mozilla");
22 +                       defaults.put("htmlviewer", "x-www-browser");
23                         defaults.put("lookAndFeel", "com.jgoodies.plaf.plastic.Plastic3DLookAndFeel");
24                 }
25          defaults.put("useDefaultLookAndFeel", Boolean.TRUE);
26 @@ -180,8 +182,6 @@
27          defaults.put("highlightGroupsMatchingAll", Boolean.FALSE);
28          defaults.put("searchPanelVisible", Boolean.FALSE);
29          defaults.put("defaultEncoding", System.getProperty("file.encoding"));
30 -        defaults.put("winEdtPath", "C:\\Program Files\\WinEdt Team\\WinEdt\\WinEdt.exe");
31 -        defaults.put("latexEditorPath", "C:\\TEMP\\Led.exe");
32          defaults.put("groupsVisibleRows", new Integer(8));
33          defaults.put("defaultOwner", System.getProperty("user.name"));
34          defaults.put("preserveFieldFormatting", Boolean.FALSE);