How to disable automatic disk link creation?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Artlav
Level 1
Level 1
Posts: 6
Joined: Sun Feb 14, 2016 4:56 am

How to disable automatic disk link creation?

Post by Artlav »

Greetings.

I have Wine 1.9.3 on Arch Linux.
For a time, all was good - i had several manually configured symlinks in the dosdevices, and they stayed the same.

Then, something happened.
I played with polkit and udisks2 to get the automounting of USB drives, among other things, (but removing them does not fix the problem).

Now every time i start some windows program, tons of links are getting created in the dosdevices, making a horrible mess.
I tried to set dosdevices directory to 555 mode, but then no windows programs start - it just hangs there until the priority is set back to write enabled.
I tracked the file creation to WINE processes, so it's not something external.

Question is - if that's a feature, how do i disable it?
If it's a bug, how can i work around it?

Considering how annoying and chaotic it is, i bet on it's being a bug.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to disable automatic disk link creation?

Post by dimesio »

Have you tried a clean wineprefix?
Artlav
Level 1
Level 1
Posts: 6
Joined: Sun Feb 14, 2016 4:56 am

Re: How to disable automatic disk link creation?

Post by Artlav »

If "clean wineprefix" means removing ~/.wine, and running winecfg again, then i just tried that.
Problem remained.

I managed to work around it by removing wine's system32/winedevice.exe - after that it starts and the links stay put.
Haven't seen any side effects.
Is that a valid workaround?
What kind of side effects to expect?
Artlav
Level 1
Level 1
Posts: 6
Joined: Sun Feb 14, 2016 4:56 am

Re: How to disable automatic disk link creation?

Post by Artlav »

Having used the workaround for some time, it's not really usable - every update restores the winedevice.exe, and every start after one screws the disk mapping.

So the original question stands - how can i disable this behavior for good?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to disable automatic disk link creation?

Post by dimesio »

Try disabling winedevice.exe in winecfg.
Artlav
Level 1
Level 1
Posts: 6
Joined: Sun Feb 14, 2016 4:56 am

Re: How to disable automatic disk link creation?

Post by Artlav »

dimesio wrote:Try disabling winedevice.exe in winecfg.
I looked through winecfg menus, /usr/share/wine/wine.inf and whatever googles up on this set of words and still have no idea how to do that.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to disable automatic disk link creation?

Post by dimesio »

1. Run winecfg
2. Go to the Libraries tab
3. Type winedevice.exe in the New override box
4. Click Add
5. Select winedevice.exe from the Existing overrides box and click Edit
6. Select Disable and click Okay on the popup dialog
7. Click Okay on the Libraries tab
Artlav
Level 1
Level 1
Posts: 6
Joined: Sun Feb 14, 2016 4:56 am

Re: How to disable automatic disk link creation?

Post by Artlav »

Thanks, looks like that worked.
Locked