File: fix-helpdir.patch

package info (click to toggle)
dia 0.98%2Bgit20260221-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 52,136 kB
  • sloc: ansic: 156,533; xml: 14,063; python: 6,250; cpp: 3,647; sh: 447; perl: 137; makefile: 33
file content (30 lines) | stat: -rw-r--r-- 1,034 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Use Debian help path
 This patch fixes Dia to use Debian's help directory for documentation
Author: Roland Stigge <stigge@antcom.de>
Author: Philippe SWARTVAGHER <phil.swart@gmx.fr>
Last-Update: 2022-05-26
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/app/commands.c
+++ b/app/commands.c
@@ -1029,7 +1029,7 @@ help_manual_callback (GtkAction *action)
   screen = ddisp ? gtk_widget_get_screen (GTK_WIDGET (ddisp->shell))
                  : gdk_screen_get_default ();
 
-  helpdir = dia_get_data_directory ("help");
+  helpdir = g_strdup("/usr/share/doc/dia/html");
   if (!helpdir) {
     message_warning (_("Could not find help directory"));
     return;
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -4,7 +4,7 @@ dblatex = find_program('dblatex', required: false, disabler: true)
 
 DB2MAN = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
 
-helpdir = pkgdatadir / 'help'
+helpdir = datadir / 'doc/dia/html'
 
 subdir('de')
 subdir('en')