On of the key themes of Ecclesiastes is contentment. To enjoy the gift of life that is from God.
It is said that enjoyment of life can only come about when you have enough to stop worrying about all the difficulties of life. If you are struggling, how can you possibly think about enjoying life?
I believe the secret lies in contentment. Until men understand the importance of thanksgiving, they will never have enough.