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
commit 2b2aa450739b5271311ad5b006319f61b88ac55a Author: Richard Hughes <richard@hughsie.com> 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. Resolves https://bugs.freedesktop.org/show_bug.cgi?id=49492
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.