ensure .local/share/plasma/containmentpreviews exists
if the folder ~/.local/share/plasma wasn't already created, for instance by installing a plasmoid, the creation of containmentpreviews failed
fix it by using mkpath instead, which creates the needed parents