View Single Post
Old 05-04-2021, 01:42 PM   #151
Brain
Enthusiast
Brain began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Aug 2017
Device: Kobo Aura One
Quote:
Originally Posted by Aramir View Post
Each file in this directory correspond to an entry in NickelMenu except kfmon and doc (wich holds the documentation duh )
Therefore if you don't create a UMR file in this folder there won't be a UMR entry in nickel menu. Obviously you can't just create an empty file and call it a day. So you can read the doc file to know what to put in your file. Use the koreader/plato file as a template.

Here's what I put in my UMR file (I've create a umr.png associated to it but NM doesn't need it, it's useful for kfmon thought)
Code:
# Launch Plato via KFMon
# NOTE: .adds/nm/kfmon will generate this automatically
#menu_item : main : Ultimate Manga Reader : umr     : umr.png

# Launch Plato directly via NM
#menu_item : main : Ultimate Manga Reader : cmd_spawn : quiet : exec /mnt/onboard/.adds/UltimateMangaReader/ultimatemangareader.sh
You might also want to add an entry for kfmon then.
In .adds/kfmon/configs/**** like stated previously use the already existing entries as a template.

My UltimateMangaReader.ini is
Code:
[watch]
; Those next two keys are MANDATORY
filename = /mnt/onboard/umr.png			; Absolute path of the icon to watch for
action = /mnt/onboard/.adds/UltimateMangaReader/ultimatemangareader.sh	; Absolute path of the command to launch when the icon is opened
; The following keys are NOT mandatory
label = UltimateMangaReader					; Label available for use by a GUI frontend
hidden = 0						; Whether to hide this entry from a GUI frontend
block_spawns = 1					; Prevents *any* script from being launched via KFMon while the command launched by this watch is still running.
							; This is useful for document readers, because they could otherwise trigger unwanted
							; behavior through their file manager, metadata reader, or thumbnailer.
do_db_update = 0					; Do we want to update Nickel's DB for this icon? (Potentially unsafe, disabled by default)
; If you enabled do_db_update, the next three keys NEED to be set
db_title = UltimateMangaReader					; Title to use for the icon's Library entry if do_db_update = 1
db_author = UltimateMangaReader Devs				; Author to use for the icon's Library entry if do_db_update = 1
db_comment = Streaming Manga Reader application		; Comment to use for the icon's Library entry if do_db_update = 1
Thank you very much! I'm sorry for a delayed response, please don't think you generously donating your time to write this went unnoticed and unappreciated

I've created a UltimateMangaReader.ini file, following your instructions and manga reader now appears in nickelmenu. I've did a quick test with 2 websites and one of them gave "Couldn't parse mangainfos", which is a bit sad, because that website had one punch man :/ However I gave another site a go and it loaded perfectly. I'm amazed at how convenient and accessible it makes this treasure of manga!

I wasn't sure about your first point though. Where exactly do I create it umr.png file? What is kfmon exactly? And how is creating that file useful for kfmon?
Brain is offline   Reply With Quote