The code has:
path = g_build_filename (g_get_home_dir (), ".PackageKit", subfolder, NULL);
It would be better to use a directory from the XDG Basedir spec. Please see https://live.gnome.org/GnomeGoals/XDGConfigFolders
Author: Richard Hughes <firstname.lastname@example.org>
Date: Tue May 15 14:33:39 2012 +0100
glib: Use the correct user-cache directory
Do not create and use ~/.PackageKit when copying files out of GVFS shares.