HaikuArchives / ArmyKnife

ArmyKnife is an application that lets you edit the metadata of audio files
MIT License
6 stars 14 forks source link

Create Help menu #38

Closed ddacw closed 6 years ago

ddacw commented 6 years ago

Help menu contains readme & changelog files, which are put in /boot/system/apps/ArmyKnife/Documentation Should fix #22

capture

scottmc commented 6 years ago

Read up on FindDirectory and then update this pull request to make use of it, instead of hard coding the directories. https://github.com/haikuports/haikuports/wiki/FindDirectory

humdingerb commented 6 years ago

The recipe for ArmyKnife puts the docs in a folder alongside the binary. This can be in the system or in the home hierarchy. It's best to open the docs relative to the binaries location. Have a look at the main.cpp of Filer here at HaikuArchive for an example how that can be done.

ddacw commented 6 years ago

Modified to use BPath & find_directory.

humdingerb commented 6 years ago

This will not work. The recipe puts the readme in $appsDir/Documentation. No "armyknife" subfolder. It also won't work when installing in the "Home" hierarchy, as B_APPS_DIRECTORY will return /system/apps/ first. You could iterate thru all possible locations with PathFinder()....

I did comment on having a look at "Filer" for a reason...

janus2 commented 6 years ago

I think it could be awesome if we add in a known place a css and maybe a html template. So all the guide, tutorial and help looks alike. The filer and preinstalled apps documentation looks stunning.