I bet you all know about this already, but I’m posting it anyway. Feel free to tell me in comments just how behind the curve I am.
We’ve had quite a nasty fruit fly infestation here, thanks to the Bavarian bounty in season right now (strawberries, sweet corn, various salad fixins, etc.). I’ve tried to bait them outside, then shut the window and throw away the bait, but they keep making it back in. But thanks to this helpful tip from The Kitchn, I’ve stopped playing games with them.
Take a small glass and pour in about two fingers of apple cider vinegar, then add a couple of drops of dishwashing liquid. Place the glass somewhere near a fruit fly magnet – a bowl of fruit, next to the trash, where ever they congregate. Then try to stay clear of them for a few hours. They will find their way to the glass and drop dead to the bottom.
Your kitchen will smell like easter eggs for a day or so, but your hovering little problems will be gone.