Add a method to force gio to notice newly installed desktop files
@didrocks
Submitted by Didier Roche Link to original bug (#744030)
Description
Let's say you have this use case:
- create a .desktop file in a xdg directory (like ~/.local/share/applications)
- immediatly after, try to load it through g_desktop_app_info_new() (as, you can gsettings set a new launcher key).
-> As discussed with desrt, we didn't get the inotify (1s timeout) noticing the new file and couldn't then load the desktop file.
Either having a way to know "we got inotify from this file" or a way to "please rescan dirs" would fix this use case.