dbordak / fmenu-rofi

fmenu modified for use with rofi
GNU General Public License v2.0
3 stars 1 forks source link

Fix non-UTF-8 characters segfault #3

Open Phyks opened 8 years ago

Phyks commented 8 years ago

Basic fix for https://github.com/dbordak/fmenu-rofi/issues/2. Just call "iconv" to discard such characters in the index file.

Phyks commented 8 years ago

There was also a problem with the shift of arguments, making it xdg-open the index file instead of cat-ing it. Solved as well.

Phyks commented 8 years ago

Also added an option to bypass index building. This way, it is possible to do something like

rofi -modi "combi" -combi-modi "window,run,ssh,fm:/home/phyks/.rofi/fmenu-rofi/fmenu-rofi -o /home/phyks/.cache/fmenu-rofi.cache -n" -key-combi SuperL+p -threads 0 &

in your .xinitrc and rely on a crontab to update the index file with the -u argument.