#! /bin/sh /usr/share/dpatch/dpatch-run
## 002-Fix_path_of_nicotine_guide by
## Josselin Mouette <joss@debian.org>
##
## DP: Fix the HTML guide path

diff -Nru nicotine+-1.2.6+svn.r139/pynicotine/gtkgui/frame.py nicotine+-1.2.6+svn.r139.new/pynicotine/gtkgui/frame.py
--- nicotine+-1.2.6+svn.r139/pynicotine/gtkgui/frame.py	2006-10-26 18:59:49.000000000 +0200
+++ nicotine+-1.2.6+svn.r139.new/pynicotine/gtkgui/frame.py	2006-10-26 18:58:44.000000000 +0200
@@ -1230,17 +1230,12 @@
 			self.DownloadButtons.hide()
 			
 	def OnNicotineGuide(self, widget):
-		file = "doc/NicotinePlusGuide.html" 
+		file = "/usr/share/doc/nicotine/NicotinePlusGuide.html"
 		if os.path.exists(file):
-			url = "file://%s/%s" % (os.environ["PWD"], file)
+			url = "file://%s" % file
 			self.OpenUrl(url)
 		else:
-			file = "%s/share/nicotine/documentation/NicotinePlusGuide.html" % sys.prefix
-			if os.path.exists(file):
-				url = "file://%s" % file
-				self.OpenUrl(url)
-			else:
-				popupWarning(None, _("Cannot Find Guide"), _("The Nicotine Offline Guide ( NicotinePlusGuide.html ) was not found in either the following directories:\n\n<u>%s/doc/\n</u><b>and</b>\n<u>%s/share/nicotine/documentation/</u>\n\nEither install Nicotine-Plus, or start from inside the Nicotine-Plus source directory." % (os.environ["PWD"], sys.prefix ) ) )
+			popupWarning(None, _("Cannot Find Guide"), _("The Nicotine Offline Guide ( NicotinePlusGuide.html ) was not found in either the following directories:\n\n<u>%s/doc/\n</u><b>and</b>\n<u>%s/share/nicotine/documentation/</u>\n\nEither install Nicotine-Plus, or start from inside the Nicotine-Plus source directory." % (os.environ["PWD"], sys.prefix ) ) )
 		
 	def OnSourceForgeProject(self, widget):
 		url = "http://sourceforge.net/projects/nicotine-plus/"
