It may have been too little, too late but Dundee finally remembered how to win a game.
Their run of league defeats was halted at 10, still a shocking tally but now horrible history rather than a weight on their back.
There was a record broken, though, and it was a good one.
Kenny Miller, at the age of 39, became the club’s oldest-ever goalscorer, beating the great Gordon Smith with his strike in 1963.
Relegation is still their fate, though, and a question mark hangs over the future of manager Jim McIntyre as a result.
Nevertheless, this victory at the Tony Macaroni Arena at least lifted the spirits for a little while.
Dundee made three changes with Nathan Ralph, Paul McGowan and Miller returning to the starting line-up. John O’Sullivan, James Horsfield and Scott Wright dropped to the bench.
There was a scare for the Dark Blues on five minutes when Livi almost took the lead through Hakeem Odoffin’s header off Craig Sibbald’s corner.
The hosts broke again on nine minutes but goalkeeper Seny Dieng did well to block Steven Lawless’s shot at the near post.
With 11 minutes on the clock, Miller got on the end of a pass from Andrew Nelson to become the club’s oldest ever goalscorer.
At the fine vintage of 39 years and four and half months, Miller broke a record that had stood since 1963.
The goal was against the run of play and Miller needed treatment after being clattered by keeper Liam Kelly.
On 26 minutes, Dolly Menga miscued a header right in front of the Dundee goal after being picked out by a Lawless cross.
Cammy Kerr had a chance for the Dark Blues inside the box when, after appearing to have lost his footing, he still managed to shoot at Kelly.
Lee Miller then stuck a foot out to direct the ball past the post as Livi pressed before Menga’s cross from the left almost sneaked under Dieng’s bar.
On 35 minutes, Nelson’s low drive from just outside the box was well held by Kelly then, up at the other end, Lawless wasn’t far away with a snap-shot.
Scott Pittman forced Dundee goalie Dieng into a fine save three minutes before the break then Paul McGowan of the visitors had to be replaced by Scott Wright.
Keaghan Jacobs blasted past for Livi in first-half stoppage-time as the Dens men went in at the break with the lead.
Six minutes after the restart, the Dark Blues went looking for a second goal and Kerr played a short pass to skipper Martin Woods, who fired wide.
Livi responded with a header from Pittman that wasn’t too far away before scorer Miller was replaced by John O’Sullivan on 58 minutes.
In front of 1,374 spectators, O’Sullivan then played a fine pass to fellow sub Wright, who had time and space but could only shoot into the arms of Kelly.
Livi sub Ryan Hardie then tried his luck with an angled shot on 76 minutes but he was never beating Dieng.
Nelson was replaced by Jesse Curran with five minutes to go and he helped Dundee finally end their drought.