Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-01-2025, 03:54 AM   #1
byrhias
Member
byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.
 
Posts: 15
Karma: 20010
Join Date: Mar 2025
Device: Kobo Clara Color
NickelMenu config error

Hi! I hope I'm posting this in the right place. I'm at my wits end. I've been trying to customise my config file to what I need based on the various examples I've found online but every time I've inserted the file in, I just get a config error that says:

parse config files: file /mnt/onboard/.adds/nm/nmconfig: line21: parse menu_item: field 2: unknown location main (src/config.c:427) (src/config.c:271)(src/config.c:936)

This is the config code I've been trying to use:


Code:
menu_item :main** * :Send to Kobo***  * :nickel_browser :modal :https://send.djazz.se
menu_item :main 	 :Rescan Books		 :nickel_misc :rescan_books_full
menu_item :main**** :Screensaver toggle :cmd_output :500 :quiet :test -e /mnt/onboard/.kobo/screensaver_old
**** chain_failure* :skip :3
**** chain_success* :cmd_spawn :quiet :mv /mnt/onboard/.kobo/screensaver_old /mnt/onboard/.kobo/screensaver
**** chain_success* :dbg_toast :Wallpaper Mode
**** chain_always** :skip :-1
**** chain_failure* :cmd_spawn :quiet :mv /mnt/onboard/.kobo/screensaver /mnt/onboard/.kobo/screensaver_old
**** chain_success* :dbg_toast :Cover Art Mode
menu_item :main**** :WiFi on/off******* :nickel_setting :toggle :force_wifi
**** chain_success* :nickel_wifi :toggle
menu_item :main	 :Sketch Pad		 :nickel_extras :sketch_pad
menu_item :main*****:Solitaire******** *:nickel_extras :solitaire
menu_item :main*****:Sudoku*********** *:nickel_extras :sudoku
menu_item :main*****:Dark Mode**********:nickel_setting :toggle :dark_mode
menu_item :main**** :Sleep************* :power :sleep
menu_item :main**** :Shutdown********** :power :shutdown
menu_item :main**** :Reboot************ :power :reboot
menu_item :main**** :USB Connection**** :nickel_misc :force_usb_connection* 

menu_item :reader** :Reading Stats***** :nickel_open :reading_life :stats
menu_item :reader** :Search************ :nickel_open :store :search
menu_item :reader** :Dark Mode********* :nickel_setting :toggle :dark_mode
menu_item :reader** :Screenshots on/off :nickel_setting :toggle :screenshots 
menu_item :reader** :WiFi on/of******** :nickel_setting :toggle :force_wifi
**** chain_success* :nickel_wifi :toggle

Can someone please tell me what I'm doing wrong? Thank you in advance for any help!
byrhias is offline   Reply With Quote
Old 03-01-2025, 04:39 AM   #2
remlap
Connoisseur
remlap began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jun 2010
Device: none
Remove all *
remlap is offline   Reply With Quote
Old 03-01-2025, 06:04 AM   #3
byrhias
Member
byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.
 
Posts: 15
Karma: 20010
Join Date: Mar 2025
Device: Kobo Clara Color
It's just spaces on my rtf file. I don't know why all the spaces are showing up as *** when I copy and paste the code here. I just tried retyping the whole code on a brand new file and it still doesn't work. A new config error has appeared

Quote:
parse config files: file/mnt/onboard/.adds/nm/tryconfig: line1: field 1: unknown type '{\rtf1\ansi\ansicpg1252\cocoartf2580' (src/config.c:327) (src/config.c:936)
byrhias is offline   Reply With Quote
Old 03-01-2025, 09:14 AM   #4
remlap
Connoisseur
remlap began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jun 2010
Device: none
Ever thought the rtf maybe the problem?

Last edited by remlap; 03-01-2025 at 09:50 AM.
remlap is offline   Reply With Quote
Old 03-01-2025, 11:17 AM   #5
byrhias
Member
byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.
 
Posts: 15
Karma: 20010
Join Date: Mar 2025
Device: Kobo Clara Color
Quote:
Originally Posted by remlap View Post
Ever thought the rtf maybe the problem?
I've tried making multiple new rtf files. I always remove the .rtf before ejecting the drive. I must have plugged and unplugged my Kobo about 50x trying to test this out. Nothing works.

I've tried streamlining the code and the same error still shows.

Code:
# Home/Main Screen

#

menu_item :main    :Kernel Version     :cmd_output         :500:uname -a
menu_item :main** * :Send to Kobo***  * :nickel_browser :modal :https://send.djazz.se
menu_item :main**** :Screensaver toggle :cmd_output :500 :quiet :test -e /mnt/onboard/.kobo/screensaver_old
**** chain_failure* :skip :3
**** chain_success* :cmd_spawn :quiet :mv /mnt/onboard/.kobo/screensaver_old /mnt/onboard/.kobo/screensaver
**** chain_success* :dbg_toast :Wallpaper Mode
**** chain_always** :skip :-1
**** chain_failure* :cmd_spawn :quiet :mv /mnt/onboard/.kobo/screensaver /mnt/onboard/.kobo/screensaver_old
**** chain_success* :dbg_toast :Cover Art Mode
menu_item :main    :Sketch Pad         :nickel_extras      :sketch_pad
menu_item :main*****:Solitaire******** *:nickel_extras :solitaire
menu_item :main*****:Sudoku*********** *:nickel_extras :sudoku
menu_item :main*****:Dark Mode**********:nickel_setting :toggle :dark_mode
menu_item :main**** :USB Connection**** :nickel_misc :force_usb_connection* 
menu_item :main**** :Sleep************* :power :sleep
menu_item :main**** :Shutdown********** :power :shutdown
menu_item :main**** :Reboot************ :power :reboot
This is the latest one. Again, ignore the asterisks, they are all spaces in the rtf itself. Still with the same config error. Someone please help
byrhias is offline   Reply With Quote
Old 03-01-2025, 11:18 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,958
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by byrhias View Post
I've tried making multiple new rtf files. I always remove the .rtf before ejecting the drive. I must have plugged and unplugged my Kobo about 50x trying to test this out. Nothing works.

I've tried streamlining the code and the same error still shows.

Code:
# Home/Main Screen

#

menu_item :main    :Kernel Version     :cmd_output         :500:uname -a
menu_item :main** * :Send to Kobo***  * :nickel_browser :modal :https://send.djazz.se
menu_item :main**** :Screensaver toggle :cmd_output :500 :quiet :test -e /mnt/onboard/.kobo/screensaver_old
**** chain_failure* :skip :3
**** chain_success* :cmd_spawn :quiet :mv /mnt/onboard/.kobo/screensaver_old /mnt/onboard/.kobo/screensaver
**** chain_success* :dbg_toast :Wallpaper Mode
**** chain_always** :skip :-1
**** chain_failure* :cmd_spawn :quiet :mv /mnt/onboard/.kobo/screensaver /mnt/onboard/.kobo/screensaver_old
**** chain_success* :dbg_toast :Cover Art Mode
menu_item :main    :Sketch Pad         :nickel_extras      :sketch_pad
menu_item :main*****:Solitaire******** *:nickel_extras :solitaire
menu_item :main*****:Sudoku*********** *:nickel_extras :sudoku
menu_item :main*****:Dark Mode**********:nickel_setting :toggle :dark_mode
menu_item :main**** :USB Connection**** :nickel_misc :force_usb_connection* 
menu_item :main**** :Sleep************* :power :sleep
menu_item :main**** :Shutdown********** :power :shutdown
menu_item :main**** :Reboot************ :power :reboot
This is the latest one. Again, ignore the asterisks, they are all spaces in the rtf itself. Still with the same config error. Someone please help
Don't make any RTF. Use a text editor such as Notepad++ (on Windows).
JSWolf is offline   Reply With Quote
Old 03-01-2025, 11:25 AM   #7
byrhias
Member
byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.
 
Posts: 15
Karma: 20010
Join Date: Mar 2025
Device: Kobo Clara Color
Quote:
Originally Posted by JSWolf View Post
Don't make any RTF. Use a text editor such as Notepad++ (on Windows).
I'm on a Mac but I just reconfigured TextEdit to plain text only as per your advice so it produces a .txt. Still getting the same error

Last edited by DNSB; 03-01-2025 at 03:32 PM.
byrhias is offline   Reply With Quote
Old 03-01-2025, 03:41 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,531
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I cleaned up the lines you posted and saved them as a text file. You do not need to remove the extension, just place the file in the /.adds/nm and NickelMenu will see it. I tested this on a Kobo Libra Colour.
Attached Files
File Type: txt nmconf.txt (1.1 KB, 60 views)
DNSB is offline   Reply With Quote
Old 03-02-2025, 02:49 AM   #9
byrhias
Member
byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.byrhias can self-interpret dreams as they happen.
 
Posts: 15
Karma: 20010
Join Date: Mar 2025
Device: Kobo Clara Color
Quote:
Originally Posted by DNSB View Post
I cleaned up the lines you posted and saved them as a text file. You do not need to remove the extension, just place the file in the /.adds/nm and NickelMenu will see it. I tested this on a Kobo Libra Colour.
Omg thank you so much! I cannot thank you enough, it finally works!
byrhias is offline   Reply With Quote
Old 03-02-2025, 02:56 AM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,531
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by byrhias View Post
Omg thank you so much! I cannot thank you enough, it finally works!
No problem. It was a 15 second copy/paste in Notepad++, search/replace the *s and save the file. I thought it would be easier to give you a known good starting point.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best of NickelMenu? enuddleyarbl Kobo Reader 27 02-06-2023 02:51 PM
NickelMenu - 'Generator error' message on Libra H2O ? steveparry KOReader 1 04-22-2021 12:47 PM
Error when reading config file in Linux dator Server 6 07-29-2018 05:09 PM
Fontconfig error: Cannot load default config file krischik Calibre 4 02-17-2012 09:48 AM
Fontconfig error: Cannot load default config file kdbdallas Calibre 11 09-06-2010 05:32 PM


All times are GMT -4. The time now is 02:25 AM.


MobileRead.com is a privately owned, operated and funded community.