File: fix-help-call.patch

package info (click to toggle)
fastqc 0.11.9%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,388 kB
  • sloc: java: 6,900; perl: 285; xml: 56; sh: 33; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 840 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Andreas Tille <tille@debian.org>
Subject: The original way to open Help text ends up in an exception
 Setting the explicit file name as well as avoiding the call to
   ClassLoader.getSystemResource
 helps fixing this.  Specifically the later is important, see
   https://lists.debian.org/debian-med/2012/11/msg00073.html

--- a/uk/ac/babraham/FastQC/FastQCMenuBar.java
+++ b/uk/ac/babraham/FastQC/FastQCMenuBar.java
@@ -132,7 +132,7 @@ public class FastQCMenuBar extends JMenu
 		}
 		else if (command.equals("help_contents")) {
 			try {
-				new HelpDialog(application,new File(URLDecoder.decode(ClassLoader.getSystemResource("Help").getFile(),"UTF-8")));
+				new HelpDialog(application,new File(URLDecoder.decode("/usr/share/fastqc/Help","UTF-8")));
 			} 
 			catch (UnsupportedEncodingException e1) {
 				e1.printStackTrace();