View Single Post
Old 09-18-2019, 04:41 PM   #1
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Prevent Kobo from importing dotfiles/folders

I've made a small hack to prevent Kobo from importing dotfiles/folders. It uses LD_PRELOAD to override the directory syscalls and skip over dotfiles other than .kobo* and .adobe-digital-editions. It only applies to the nickel process. This hack was made to solve the issue mentioned in the firmware thread.

This will survive through firmware upgrades. To remove it, you'll need to wait until I make a script for that, or you can delete /etc/ld.so.preload and /usr/local/geek1011/libhidedir_kobo.so (you can also factory reset). I've done some preliminary tests, and everything seems to work well.

See here for the code and more details: https://github.com/geek1011/kobo-mod...o-dotfile-hack .

Update for 4.17.13694+: There's now a official config option which can do basically the same thing. If you want, you can still use this hack (it will still work). See near the end of this thread for how to use the config option. The disadvantage of the config option is that it won't persist after a sign out and that it will delete stuff if you don't get it right the first time, but otherwise, after the initial setup, they're pretty much identical.
Attached Files
File Type: zip kobo-dotfile-hack_v0.1_6f452d1.zip (4.4 KB, 1476 views)

Last edited by geek1011; 10-07-2019 at 02:23 PM.
geek1011 is offline   Reply With Quote