Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50069

Bug in Wallpaper / Cover Art mode toggle in NickelMenu

$
0
0
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


Viewing all articles
Browse latest Browse all 50069

Latest Images

Trending Articles



Latest Images