From: Christopher Hoskin <christopher.hoskin@gmail.com>
Date: Sat, 25 Jan 2025 07:21:29 +0100
Subject: Use Debian path for manual

Bug-Debian: 836052
Forwarded: not-needed
Last-Update: 2016-08-31

Changes the path used by tj3man to find the user manual index.html file from
one relative to the binary to the absolute path /usr/share/doc/tj3/html/ used
by Debian
---
 lib/taskjuggler/apps/Tj3Man.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/taskjuggler/apps/Tj3Man.rb b/lib/taskjuggler/apps/Tj3Man.rb
index 861c21c..f7f2e60 100644
--- a/lib/taskjuggler/apps/Tj3Man.rb
+++ b/lib/taskjuggler/apps/Tj3Man.rb
@@ -108,8 +108,7 @@ def showManual(keyword = nil)
     # specified keyword.
     def startBrowser(keyword = nil)
       # Find the manual relative to this file.
-      manualDir = File.join(File.dirname(__FILE__), '..', '..', '..',
-                            'manual', 'html')
+      manualDir = '/usr/share/doc/tj3/html/'
       file = "#{manualDir}/#{keyword || 'index'}.html"
       # Make sure the file exists.
       unless File.exist?(file)
