In either case these problems can be simply amended using a graphite pen from any hardware store.
How to fix a glass door lock.
How to fix a sliding glass door lock step 1.
Install the locking.
Normally a glass sliding door will have a standard pin tumbler variety that can be found in any regular door.
In this case you may have difficulty inserting or removing the key.
How to fix a glass sliding patio door that dosnt roll close or lock properly.
Remove the broken sliding glass door lock from the door by removing the screws that attach it to the door.
Unfortunately with these types it is fairly common for debris to get inside and jam the mechanism.
Within seconds your lock should feel like new.
Simply insert the pen into the lock and squeeze a small amount of the substance into the lock.