GNOME Bugzilla – Bug 741317
miner-fs: use GFile to check for homedir
Last modified: 2014-12-10 17:10:55 UTC
See attached patch.
Created attachment 292417 [details] [review] miner-fs: use GFile to check for homedir Instead of a simple path comparison. This will work with relative paths, double slashes and similar scenarios, since the path will be fully-canonicalized by GIO before comparison. The price to pay is recursively indexing the home directory, so we'd better be extra careful...
Comment on attachment 292417 [details] [review] miner-fs: use GFile to check for homedir Hi Cosimo, interesting patch. I didn't think the g_get_user_special_dir() returned values would be anything but full paths when writing the code. Based on your points, the patch makes sense. Thanks again :)
Thanks for the quick review. Attachment 292417 [details] pushed as 5f06c13 - miner-fs: use GFile to check for homedir