Since FW 4.17.13651, Kobo will import from dotfiles/folders. This is a LD_PRELOAD hack to fix that.
- You'll be able to use dotfolders for mods and files without having Kobo import the stuff in it.
- Unlike a patch, this is persistent (and there is less chance of accidentally disabling it).
- More control then a patch.
- Relatively simple.
- Needs a cross-compiler.
- Will not work completely if Kobo uses
fdopendir
. - Hardcoded paths for dotfiles to show.
- Needs SSH/telnet access to remove (or a factory reset).
You can build kobo-dotfile-hack with NickelTC inside Docker using:
docker run --volume="$PWD:$PWD" --user="$(id --user):$(id --group)" --workdir="$PWD" --env=HOME --entrypoint=make --rm -it ghcr.io/pgaskin/nickeltc:1.0
Or, on the host using:
make CROSS_COMPILE=/path/to/nickeltc/bin/arm-nickel-linux-gnueabihf-
To test this on any Linux machine, run make -f Makefile.native test
.