Thanks for this, ever since I repotted my cacti*, the house has been infested. I shall create a pool of death in each room tonight!
those probably won’t be fruit flies – sounds more like Fungus Gnats which breed in soil – tend to hitch a lift in in potting compost or shop bought potted plants and supermarket herbs.
Its just the top half and inch or so of the soil that they breed in and if that dries out they can’t survive, So the trick to getting rid of them is to water plants from the base rather than the top of the pot.
No idea if they’d be partial to wine or vinegar but that would only trap the adults and you’d still have the lavae in the soil