Doing ALL things to the glory of God is living life with very good intentions and pure motives.
If your motive or intentions are right, you can not be wrong before God.
God is more interested in our motives or intentions than our actions. Men see our actions, but God sees our intentions.
Men look to the outside and judge us by our actions. But God looks to the inward (to the heart) and judges us by our intentions or motives.
1 Samuel 16:7
_But the LORD said to Samuel, "Do not look at his appearance or at his physical stature, because I have refused him. For [the LORD does] not [see] as man sees; for man looks at the outward appearance, but the LORD looks at the heart."_
The LORD looks at the heart (our motives and intentions), but man looks at the outward appearance, our actions, or expressions.
In the realm of the spirit, intentions are more powerful than actions.
Seeking to glorify God in all that you do is living life with good intentions. It is living to please God.
You can keep your motives right before God and do all things with good and perfect intentions by doing all things to the glory of God.
_Shalom_