An all-purpose cleaner is not a disinfectant. A disinfectant helps clean germs and bacteria entirely off of a surface, whereas an all-purpose cleaner’s job is to remove dirt and some of the germs.
You can use the all-purpose cleaner to clean glass, but only if it is vinegar or an ammonia-based cleaner. Any soap-based cleaner will leave streaks and residue on the glass. So either get a specific glass cleaner or ensure the all-purpose cleaner in your cleaning kit doesn’t have soap as an ingredient.