Skip to content
vestingz edited this page Feb 9, 2018 · 2 revisions

Unicode errors when scanning

If cache scanning fails with an error such as:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xb4 in position 1: ordinal not in range(128)

You can workaround this by converting your pathnames to UTF-8 format using the following command

convmv -f windows-1252 -t utf8 -r ~ --notest

This sets file and foldernames to utf8 recursively from the given directory (~ in the above command)

Credit: trqx

Pacman hook to rebuild your dmenu cache after package installation or removal

Create a file in /usr/share/libalpm/hooks/<FILENAME>.hook with this content:

[Trigger]
Type = Package
Operation = Install
Operation = Remove
Target = *

[Action]
Description = Rebuilds Cache of dmenu-extended after package installation or removal
When = PostTransaction
Exec = /usr/bin/sudo -u <FILL_IN_YOUR_USERNAME> /usr/bin/dmenu_extended_cache_build
Depends = dmenu-extended-git