# Preventing TexMaker from opening .tex files by default

Is there a way of stopping TexMaker from opening .tex files? I'm using OSX (10.6.8) and have TexShop 2.43 and Texmaker 3.0.2 installed . Even though I have right-clicked on a .tex file and specified `Open with: TexShop`, and clicked on `Change All`; TexMaker appears to still have some way of overriding this preference.

I keep both programs on my computer as I find TexMaker useful for debugging linked `\input` files, which TeXShop appears not to notice. However TexMaker's insidiousness makes me want to delete it.

-

## migrated from tex.stackexchange.comSep 3 '11 at 21:21

This question came from our site for users of TeX, LaTeX, ConTeXt, and related typesetting systems.

What OS version are you using? I can't reproduce this behaviour. –  Alan Munn Aug 17 '11 at 12:43
10.6.8 - I just added it to the question. –  celenius Aug 17 '11 at 12:50
That's what I'm using too. My files are set to open with TeXShop, when I open and save a file with TeXMaker (or TeXMakerX), double clicking on a file (even the same file) opens it with TeXShop. –  Alan Munn Aug 17 '11 at 12:55
Try rebuilding the launch services database. In a Terminal window, enter: `/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.fra‌​mework/Support/lsregister -kill -r -domain local -domain system -domain user` –  Alan Munn Aug 17 '11 at 13:22
hmmm, I'm getting an error `command not found` when I try running `lsregister -kill -r -domain local -domain system -domain user` from within `Support/` –  celenius Aug 17 '11 at 13:49