Prevent wine from altering file associations during install

Questions about Wine on Linux
Locked
kajman
Newbie
Newbie
Posts: 2
Joined: Fri Oct 12, 2012 2:35 am

Prevent wine from altering file associations during install

Post by kajman »

Hi,

one thing I truly dislike in wine is creating file associations to use notepad.exe or core.exe. I know that I can prevent wine from creating such entries for new software disabling winemenubuilder.exe from winecfg.

But what can I do to prevent any changes when I install it for the first time? (I didn't install any image viewer, but core.exe wants to view my png files, and for sure I didn't install notepad on my own to view txt files).

I really like functionality that wine gives me (when there's no native alternative software), but just hate it sometimes for being so "windows-like" and overriding my settings without asking. This is my desktop so no one should mess with it :P

Any way to disable?

cheers,
kajman
kajman
Newbie
Newbie
Posts: 2
Joined: Fri Oct 12, 2012 2:35 am

Re: Prevent wine from altering file associations during inst

Post by kajman »

I've read the FAQ, but to quote the question from there:
How can I prevent Wine from changing the filetype associations on my system or adding unwanted menu entries/desktop links when I install a Windows program?
As I read the question and the answers I thought it is just about installing new software with wine, not about installing wine alone.

How could I use instructions there to forbid wine from hijacking associations when it is first installed?
(all the instructions there apply to new software installation IMO)

Also, I just don't get it - why do it for everyone? Couldn't this be a configuration step when first running wine or winecfg?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Prevent wine from altering file associations during inst

Post by dimesio »

Plain Wine cannot add any file associations until it is run, and disabling winemenubuilder in your .bashrc will prevent that. If you are seeing file associations added before ever running anything in Wine (including winecfg and other builtin apps), they are probably being added by your distro package.

FYI, you are not the only one who dislikes the default behavior: http://bugs.winehq.org/show_bug.cgi?id=19182.
Locked