Opened 5 years ago

Closed 5 years ago

#539 closed task (fixed)

Nicotine+ can't find NicotinePlusGuide.html

Reported by: melmorabity@… Owned by: quinox
Priority: normal Milestone: Release 1.2.14
Component: nicotine Version: 1.2.14
Keywords: Cc:

Description

Hi,

I'm running Nicotine+ on Fedora 12 using Python 2.6.2.

When trying to read the Offline Nicotine+ Guide from the menu (Help -> Offline Nicotine+ guide), I got the following error:

The Nicotine Offline Guide ( NicotinePlusGuide.html ) was not found in either the following directories: /home/mohamed and /usr/share/nicotine/documentation/

whereas this file is in /usr/share/nicotine/documentation/:

$ ls /usr/share/nicotine/documentation/NicotinePlusGuide.html
/usr/share/nicotine/documentation/NicotinePlusGuide.html

After some debugging, it seems that Nicotine+ searchs in fact this file in /usr/share/nicotine/documentation/doc/, whereas NicotinePlusGuide?.html is installed by default in /usr/share/nicotine/documentation/ (I set my prefix when installing Nicotine+ in /usr/).

I made a patch to make Nicotine+ get this file where it was installed, that is to say in "%s/share/nicotine/documentation", where %s is sys.prefix

Attachments (1)

nicotine+-1.2.14-guide.patch (713 bytes) - added by melmorabity@… 5 years ago.
Patch to force Nicotine+ to retrieve the installed guide in the right place

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by melmorabity@…

Patch to force Nicotine+ to retrieve the installed guide in the right place

comment:1 Changed 5 years ago by quinox

  • Resolution set to fixed
  • Status changed from new to closed

It was the same on my system. But, the doc folder is present when you run N+ directly from source (SVN etc.). So instead of replacing the existing lines I've added your lines to the code base. This way it should work for everybody :-)

Thanks for the input, fixed with r1355.

Note: See TracTickets for help on using tickets.