Notepad++ Forum

This is a community forum and not official technical support. — If you need official support: Contact Us

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

Opening a txt file starts Notepad++ and opens the .txt in WINE notepad

So Notepad++ starts, but the actual .txt file is opened in WINE notepad.
How can I get rid of this Wine notepad?

Hi,

The .txt extension must be associated with notepad instead of of
with notepad++ ; check/edit your file extension associations in
the crossover control panel, wrt to the bottle you have notepad++
installed into -- at a guess anyhow, hard to say when you haven't
stated what OS you are using..ie; there may be a system wide .txt
association doing this...(as put there by an installation of WINE
or by some other bottle)...

Cheers!

OS: OSX snow leopard latest

I just found that inside Notepad++ the .txt extension wasn't associated with Notepad++ itself.
After changing this (preferences, file associations) it seems to work.

Where can you change file associations in the Crossover configuration?

DJ

Hi,

Start cxsetup => highlight bottle => control panel => edit associations

Cheers!

This is a Mac vs. Linux difference. On the Mac, there's no control panel for editing associations. Instead, we rely on the normal Mac techniques for associated document types with applications -- our launcher mini-applications we create for each Start Menu shortcut, in this case.

Once the document is passed to the launcher, though, it's pretty brain-dead. It just passes the generic "open this document" request into the bottle, and the bottle uses the registry to pick which program is actually run to handle the document.

So, you can get a mismatch like DJ saw. In Mac-world, .txt files were associated with the launcher mini-application that CrossOver created for Notepad++. Then, the file gets passed into the bottle. In there, .txt files were associated with the built-in Notepad that comes with CrossOver/Wine.

Apparently, Notepad++ offers a way to set itself as the default .txt file handler in the bottle, fixing the problem.

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzMxNDM1MjAzLCJjc3JmX3Rva2VuIjoiWE5mdmVyc1BUOTZVRWd5OCIsImdkcHIiOjB9