That is a valid design but it really should utilize a cap that is designed and rated for direct mains connection, not just that it's working voltage is high enough, but that if it does fail it fails in a safe manner.
That is a valid design but it really should utilize a cap that is designed and rated for direct mains connection, not just that it's working voltage is high enough, but that if it does fail it fails in a safe manner.