refresh desktop entries

C++
update-desktop-database # desktop-file-utils
update-desktop-database ~/.local/share/applications
Source

Also in C++: