Revert "mate-screenshot: simplify get_desktop_dir()"

This reverts commit 21c397d825cb06890efb0e847c13b9c3c6254db0.
mate-screenshot: Do not use g_settings_list_schemas
gsearchtool: Do not use g_settings_list_schemas