View Single Post
Old 05-29-2024, 04:13 AM   #1
shyhermit
Connoisseur
shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.
 
Posts: 95
Karma: 3160
Join Date: Apr 2024
Device: none
Bug in Wallpaper / Cover Art mode toggle in NickelMenu

The standard code being used to toggle between wallpaper mode and cover art mode for screensaver in NickelMenu has a bug. The bug is triggered when you import new books while you are in cover art mode. The bug causes all of your screensavers to be imported in errors as books.

This is because Kobo is treating in error all of the screensaver images that are stored under /.kobo/screensaver_old as ebooks and imports them. This does not happen when you are in wallpaper mode since the screensaver images are stored under /.kobo/screensaver which are shielded from being scanned by Kobo for importing.

How do you fix this?

Code:
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
shyhermit is offline   Reply With Quote