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 01-01-2021, 09:22 AM   #451
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@baskerville:

Given that the default exclude list has a bunch of .kobo in there, I'm going to assume yes ^^.

(Much more importantly than Dropbox, books bought from Kobo are in there, you definitely wouldn't want to exclude those ;p).

Code:
\.add
(\.kobo|koboExtStorage)/articles
(\.kobo|koboExtStorage)/images
(\.kobo|koboExtStorage)/kepub
(\.kobo|koboExtStorage)/screensaver
(\.kobo|koboExtStorage)/slideshow
(\.kobo|koboExtStorage)/dict
(\.kobo|koboExtStorage)/certificates
(\.kobo|koboExtStorage)/webcache
(\.kobo|koboExtStorage)/webstorage
(\.kobo|koboExtStorage)/sunpinyin
\.fseventsd
\.Spotlight-V100
\.Trash
\.Trashes
\.Trash-\d+
\$RECYCLE.BIN
Inserted into

Code:
^/mnt/(sd|onboard)/%1$
Which means we can't use ^ or $ in the setting's pattern.

----

IIRC, the issue is that the setting *overrides* the default list, which explains the strictness.

If you have a pattern on hand that does both, I don't have any qualms about replacing it, but, this one works for 99% of use-cases and hasn't eaten anyone's data so far .

Last edited by NiLuJe; 01-01-2021 at 09:26 AM.
NiLuJe is offline   Reply With Quote
Old 01-01-2021, 12:55 PM   #452
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by NiLuJe View Post
@baskerville:
Much more importantly than Dropbox, books bought from Kobo are in there, you definitely wouldn't want to exclude those ;p.
Are you sure that the exclusion pattern is involved in this case?

I'm asking because I tried Pocket, and it seems to work fine when .kobo isn't whitelisted.

Quote:
Originally Posted by NiLuJe View Post
@baskerville:
If you have a pattern on hand that does both, I don't have any qualms about replacing it
Here's a combination of the current pattern, that matches paths that start with a hidden directories (except .kobo* and .adobe*), and a pattern that matches paths that start with at least one visible directory followed by an hidden directory:
Code:
(\\.(?!kobo|adobe).+|([^.][^/]*/)+\\..+)

Last edited by baskerville; 01-02-2021 at 11:48 AM.
baskerville is offline   Reply With Quote
Old 01-01-2021, 05:17 PM   #453
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by baskerville View Post
Are you sure that the exclusion pattern is involved in this case?

I'm asking because I tried Pocket, and it seems to work fine when .kobo isn't whitelisted.
Given what I quoted above, it's conceivable that some of it (notably, the .kobo stuff) is actually a whitelist applied *after* the exclude list. or not, and KePubs are scanned completely differently. Not up to checking the assembly myself .

(Also, I don't know where the "this is for Pocket" idea came from: I don't use Pocket myself, and that doesn't ring a bell at all :?).

Last edited by NiLuJe; 01-01-2021 at 09:27 PM.
NiLuJe is offline   Reply With Quote
Old 01-01-2021, 09:24 PM   #454
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by baskerville View Post
Are you sure that the exclusion pattern is involved in this case?

I'm asking because I tried Pocket, and it seems to work fine when .kobo isn't whitelisted.



Here's a combination of the current pattern, that matches paths that start with a hidden directories (except .kobo* and .adobe*), and a pattern that matches paths that start with at least one visible directory followed by an hidden directory:
Code:
(\\.(?!kobo|adobe).*?|([^.][^/]*/)+\\..+)
That seems to do the trick, thanks

Code:
Jan  2 03:23:49 nickel: (   144.461 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.addons" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:49 nickel: (   144.462 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.adds" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.468 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.foo" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.481 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.kobo/certificates" , matches "(\.kobo|koboExtStorage)/certificates" 
Jan  2 03:23:50 nickel: (   144.487 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.kobo/dict" , matches "(\.kobo|koboExtStorage)/dict" 
Jan  2 03:23:50 nickel: (   144.498 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.kobo/kepub" , matches "(\.kobo|koboExtStorage)/kepub" 
Jan  2 03:23:50 nickel: (   144.504 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.kobo/webstorage" , matches "(\.kobo|koboExtStorage)/webstorage" 
Jan  2 03:23:50 nickel: (   144.505 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.niluje" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.506 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.reading-states" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.506 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.Spotlight-V100" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.506 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.Trashes" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   145.290 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/foo/.foo" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)"
EDIT: https://github.com/NiLuJe/kfmon/comm...941d22cca1b4d6 .

Last edited by NiLuJe; 01-01-2021 at 09:54 PM.
NiLuJe is offline   Reply With Quote
Old 01-02-2021, 05:08 AM   #455
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by NiLuJe View Post
Thanks, you might also want to update the links to install.sh in the first post…
baskerville is offline   Reply With Quote
Old 01-02-2021, 07:58 AM   #456
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by NiLuJe View Post
I don't know where the "this is for Pocket" idea came from: I don't use Pocket myself, and that doesn't ring a bell at all
You do mention Pocket in this post.
baskerville is offline   Reply With Quote
Old 01-02-2021, 08:09 AM   #457
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
One last question regarding the pattern: why are you using a lazy quantifier?
baskerville is offline   Reply With Quote
Old 01-02-2021, 09:16 AM   #458
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by baskerville View Post
Thanks, you might also want to update the links to install.sh in the first post…
Nice catch, thanks .

Quote:
Originally Posted by baskerville View Post
You do mention Pocket in this post.
Huh. Well, I've never used Pocket, so, who knows what I was thinking at the time .

No-one's actually complained of Pocket breaking since, though, so, eh.

Quote:
Originally Posted by baskerville View Post
One last question regarding the pattern: why are you using a lazy quantifier?
I don't actually remember who came up with the final iteration, but, as far as I'm concerned, probably because I tend to prefer those (and it ends up anchored by a $, which suits us just fine).

Last edited by NiLuJe; 01-02-2021 at 09:19 AM.
NiLuJe is offline   Reply With Quote
Old 01-03-2021, 05:24 AM   #459
kerminaawad
Junior Member
kerminaawad began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2020
Device: Kobo Clara HD
Hi NiLuJe, I was just wondering if there is any benefit to having both KFMon and NM installed together. It seems to me that they both acheive the same thing.
kerminaawad is offline   Reply With Quote
Old 01-03-2021, 10:07 AM   #460
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@kerminaawad: Backward compatibility, and/or being able to still launch stuff when you break your NM config and/or your KFMon setup .

(Also, KFMon's optional boot progress bar).
NiLuJe is offline   Reply With Quote
Old 01-03-2021, 11:49 AM   #461
kerminaawad
Junior Member
kerminaawad began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2020
Device: Kobo Clara HD
Quote:
Originally Posted by NiLuJe View Post
@kerminaawad: Backward compatibility, and/or being able to still launch stuff when you break your NM config and/or your KFMon setup .

(Also, KFMon's optional boot progress bar).
Okay cool, sounds good. One more question, can NM return to Nickel after exiting an external program (Plato for example)? Or is that a KFMon thing? Or both?
kerminaawad is offline   Reply With Quote
Old 01-03-2021, 12:42 PM   #462
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@kerminaawad: That's a "whatever you ran" thing, not the launcher .

----

Besides, as NM lives *inside* Nickel, if there's no Nickel, there's no NM .
NiLuJe is offline   Reply With Quote
Old 01-03-2021, 12:50 PM   #463
kerminaawad
Junior Member
kerminaawad began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2020
Device: Kobo Clara HD
Oh, okay. That's not what I understood from issue #2 on KFMon's GitHub page. I thought it was something to do with the launcher.

Anyways, I wanted to say thank you to you and to everyone who puts in time and effort to create these mods/programs. It brings me back to a time when I was younger, when Android was fun to play around with. And thanks for the prompt responses.

On another note, is there anyway I can contribute? I only know Java and Python at this time... I guess there's no harm in asking.
kerminaawad is offline   Reply With Quote
Old 01-03-2021, 12:57 PM   #464
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
KFMon's #2 is not for the faint of heart, and touches on a lot of different things. But it basically meant that whatever you did, you couldn't restart Nickel sanely *from whatever you ran*, as long as said stuff was originally launched through KFMon. But that's long past, and has been fixed for years now.

Last edited by NiLuJe; 01-03-2021 at 04:49 PM.
NiLuJe is offline   Reply With Quote
Old 01-03-2021, 01:28 PM   #465
kerminaawad
Junior Member
kerminaawad began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2020
Device: Kobo Clara HD
Ah okay, I understand now. Thanks again.
kerminaawad is offline   Reply With Quote
Reply

Tags
kfmon, kobo, koreader, plato


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura How to install ksm and koreader mhss Kobo Reader 0 01-17-2018 07:45 PM
Koreader could not be opened by click an epub file on the books list johnleo KOReader 4 12-11-2017 07:57 AM
Cannot install custom update packages via MRPI anunay Kindle Developer's Corner 9 02-09-2017 07:46 AM
Kobo-how to install koreader sahbi KOReader 22 01-02-2016 03:49 PM
Koreader install help mrmojorizing Kobo Developer's Corner 3 09-29-2014 01:24 PM


All times are GMT -4. The time now is 03:49 PM.


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