![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,644
Karma: 16302664
Join Date: Sep 2022
Device: Kobo Libra 2
|
You probably need to edit the configuration file to exclude more folders from being scanned:
Code:
[FeatureSettings] ExcludeSyncFolders=(\\.(?!kobo|adobe).+|([^.][^/]*/)+\\..+) |
![]() |
![]() |
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 3160
Join Date: Apr 2024
Device: none
|
Hi, Aleron, Tried your code. Does not work and gives a strange side effect.
I tested it by switching to Cover Art mode. This caused the screensaver to be temporarily saved to /.kobo/screensaver_old as intended. I then triggered a full scan in NickelMenu to import all books. Code:
# Nickel_Misc Actions menu_item :main :Import books :nickel_misc :rescan_books_full Help? |
![]() |
![]() |
![]() |
#4 |
Teluk Biru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 154
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
|
My screensaver settings are:
Kobo Configuration file: Code:
[FeatureSettings] ExcludeSyncFolders=(\\.(?!kobo|adobe).+|([^.][^/]*/)+\\..+)|(screensaver_old) Nickelmenu: Code:
menu_item :main :Screensaver :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 I also install kobo-dotfile-hack to Prevent Kobo from importing dotfiles/folders, https://www.mobileread.com/forums/sh...d.php?t=323083 I check wallpaper and cover art mode status with a full scan in NickelMenu to import all books, no images are imported. Last edited by hatuluang; 05-29-2024 at 12:02 PM. |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 3160
Join Date: Apr 2024
Device: none
|
|
![]() |
![]() |
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 3160
Join Date: Apr 2024
Device: none
|
Alas, on further testing, the modified code does not work for me. What happens is that if I hard boot the device after enabling the cover art mode and doing a sync, the screensaver_old directory is somehow again deleted by Kobo so my screensaver mode is lost once the device is rebooted.
Therefore, the effect works as long as I don't reboot. This is just bizarre. |
![]() |
![]() |
![]() |
#7 | |
Teluk Biru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 154
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
|
Quote:
Last edited by hatuluang; 05-29-2024 at 08:45 PM. |
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 3160
Join Date: Apr 2024
Device: none
|
It is the combination with the triggering of Force Scan in NickelMenu that is the problem. This is because it was working normally before until I start using Force Scan to import e-books that I sideloaded.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PW4 Airplane Mode/Wifi Toggle from Command Line | KetchupCider | Kindle Developer's Corner | 2 | 01-09-2024 10:06 PM |
Bug: Dark Mode (Windows) Book Details Pop-Up Cover Background Not Changing to Dark | cgrapski | Calibre | 7 | 05-03-2021 11:45 PM |
Dark Mode Toggle | Futuregrace | Amazon Kindle | 61 | 06-22-2020 10:37 AM |
Cover Art Problem When Kobo Touch in Sleep Mode | Bermudagirl | Kobo Reader | 17 | 02-26-2014 11:09 PM |
Auto toggle Airplane mode on Kindle Paperwhite | Inman | Amazon Kindle | 5 | 12-21-2012 05:38 PM |