The surface of the glass, which will be contacted with the groove or with the body, must be carefully treated with a primer to ensure better adhesion of materials.
Now you need to apply a sealant, and the line should be inseparable. Well, glass can be installed. If the sealant got out on the glass, then this is not scary — later remove.Now fix with tape and leave until the morning.