Fixed X crashing when switching to laptop from docking
Ranger opens tex files with texmaker