The maps:scan-photos command actually runs through all the user files which is definitely not wanted when you have not only photos in your userspace. An option to restrict the scan to a certain folder ist needed. This is true for maps:scan-tracks also (because .gpx is not unique to .gpx Tracks, but also to GuitarPro files for example).