pgaskin / NickelMenu

The easiest way to launch scripts, change settings, and run actions on Kobo e-readers.
https://pgaskin.net/NickelMenu
MIT License
590 stars 32 forks source link

Installed dropbox line but it keeps loading #140

Open snuf72 opened 1 year ago

snuf72 commented 1 year ago

hello, added menu_item:main:dropbox:nickel_open:library:dropbox but when selecting dropbox and on next dropbox page i select "aan de slag" or in english probably go for it, it stuck on loading page

BoukeNijhuis commented 1 year ago

Hi,

I have exactly the same problem, so I decided to do a sys dump and that gives the following log lines:

Jun 11 19:09:44 nickel: (NickelMenu) item 'Dropbox' pressed... (src/nickelmenu.cc:391)
Jun 11 19:09:44 nickel: (NickelMenu) action 0x30405f25 with argument library:dropbox :  (src/nickelmenu.cc:666)
Jun 11 19:09:44 nickel: (NickelMenu) ...success=1 ; on_success=1 on_failure=1 skip=0 (src/nickelmenu.cc:667)
Jun 11 19:09:44 nickel: (NickelMenu) nickel_open: detected firmware >15505 (new nav tab bar), checking special cases (src/action_cc.cc:75)
Jun 11 19:09:44 nickel: (  3063.822 @ 0x18967f0 / libraryLayout.warning) void AbstractLibraryController<C>::layout(bool) [with C = DropboxItem] source has no rows 
Jun 11 19:09:44 nickel: (  3063.834 @ 0x18967f0 / libraryLayout.warning) void AbstractLibraryController<C>::layout(bool) [with C = DropboxItem] source has no rows 
Jun 11 19:09:44 nickel: (  3063.834 @ 0x18967f0 / libraryLayout.warning) void AbstractLibraryController<C>::goToPageImpl(int) [with C = DropboxItem] 1 > 0 
Jun 11 19:09:44 nickel: (  3063.844 @ 0x18967f0 / libraryLayout.warning) void AbstractLibraryController<C>::layout(bool) [with C = DropboxItem] source has no rows 
Jun 11 19:09:44 nickel: (NickelMenu) ...result: type=0 msg='(null)', handling... (src/nickelmenu.cc:703)
Jun 11 19:09:44 nickel: (NickelMenu) done (src/nickelmenu.cc:393)
Jun 11 19:09:46 nickel: (  3065.704 @ 0x18967f0 / ui.warning) virtual void WebStore::load(const QUrl&) url is empty. 

The last line seems to indicate that there is a an empty URL. Is this a bug or am I doing something wrong?

Extra information

The file in the .adds/nm directory has the following content:

menu_item :reader  :Invert Orientation  :nickel_orientation :invert
menu_item :main    :Dropbox         :nickel_open        :library:dropbox
menu_item :main    :Dump Syslog         :cmd_spawn          :logread > /mnt/onboard/.adds/syslog.log

One more piece of the puzzle, we both seem to live in the Netherlands. I'm basing this on the fact that @snuf72 used a button with the title 'Aan de slag'. I have set my e-reader to English and therefore I see 'Getting started'.

My device is Kobo Aura ONE with firmware version 4.35.20400. I downloaded NikelMenu today (11-6-2023), so probably version 0.5.4.

BoukeNijhuis commented 1 year ago

I was able to fix it by using the following solution:

Check your readers config file under ".kobo/Kobo/Kobo eReader.conf", specifically the option "dropbox_link_account_poll=". If this option is empty, you need to add this URL behind it:

https://authorize.kobo.com/{region}/{language}/LinkDropbox

(do not replace the placeholders, just copy it exactly)

Source: https://www.mobileread.com/forums/showpost.php?p=4193905&postcount=13

Happy dropboxing! 😎

matthijs166 commented 1 month ago

Same here I followed this guide: https://www.reddit.com/r/kobo/comments/txhkfa/how_to_access_native_dropbox_integration_on_all/

Maybe this can be added in the documentation?