From 2884f67c0d20476e3e88c625b4921e27becbf282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 2 Jan 2017 13:39:32 +0100 Subject: Move help html dir into xtrkcad-common; add patch to find them --- debian/patches/0705-help_path.patch | 25 +++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 26 insertions(+) create mode 100644 debian/patches/0705-help_path.patch (limited to 'debian/patches') diff --git a/debian/patches/0705-help_path.patch b/debian/patches/0705-help_path.patch new file mode 100644 index 0000000..ac5e463 --- /dev/null +++ b/debian/patches/0705-help_path.patch @@ -0,0 +1,25 @@ +Description: Change help html directory to the installation specific +Author: Jörg Frings-Fürst +Forwarded: not-needed +Last-Update: 2017-01-02 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/app/wlib/gtklib/gtkhelp.c +=================================================================== +--- trunk.orig/app/wlib/gtklib/gtkhelp.c ++++ trunk/app/wlib/gtklib/gtkhelp.c +@@ -677,8 +677,12 @@ EXPORT void wHelp( const char * topic ) + directory = malloc( BUFSIZ ); + assert( directory != NULL ); + +- sprintf( directory, "%s/html/", wGetAppLibDir()); +- ++/* sprintf( directory, "%s/html/", wGetAppLibDir());*/ ++/* ++ * Change path for debian installation ++ * ++ */ ++ sprintf( directory, "%s/html/", "/usr/share/doc/xtrkcad-common"); + wHelpWindow = CreateHelpWindow(); + /* load the default content */ + load_into_view ("index.html", MAIN_VIEW); diff --git a/debian/patches/series b/debian/patches/series index c7cc441..aa10a1c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 0900-spelling-errors.patch 0700-info_file.patch 0100-gtk.patch +0705-help_path.patch -- cgit v1.2.3