You are not logged in.

#1 2022-04-22 23:33:20

boocheus
Member
Registered: 2022-03-28
Posts: 21

How to redirect "DLL" files from one directory to another. [SOLVED]

I have a custom version of dxvk that I wish to use to replace protons dxvk.
I dont want to have to copy paste replace them manually. The dlls update every so days and i dont want the extra busy work.

This would be easy if both files were the same name but they are not and i cannot change the file names.

I just want to know how to redirect "DLL" files from one directory to another directory. So I dont have to manually replace DLLs every update.

Im just going to use install_dxvk.sh with --symlink to each game. For lutris it seems to have stuck dispite updates.
WINEPREFIX=/home/USERNAME/.local/share/Steam/steamapps/compatdata/239160/pfx '/usr/share/dxvk/dxvk/dxvk/setup_dxvk.sh' install --symlink for example.

Last edited by boocheus (2022-04-25 20:04:41)

Offline

#2 2022-04-23 00:37:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,484
Website

Re: How to redirect "DLL" files from one directory to another. [SOLVED]

I think you're going to need to provide a lot more information.  First why do you think you want to do this?  This sounds a lot like an X-Y problem.

Next, what "custom version" do you hae?  And how / why do the dlls update every ?? days? (it seems there was a typo there).  Unless I'm missing something any dxvk dlls for use with wine would be provided only by an AUR package, right, I don't see these in the wine package contents.  AUR packages do not update themselves, you update them on your schedule.

As for the files having different names, what are the different names?  How / why would it be easier if they had the same name?  You can rename the custom ones ... then they'd have the same names!

But whatever is going on, if copy/pasting them wouldn't work because they will be replaced by an update, symlinking them wouldn't either, as those symlinks would then be overwritten by the same update.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-04-23 12:57:25

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: How to redirect "DLL" files from one directory to another. [SOLVED]

I am trying to replace protons dxvk with the mingw dxvk. I dont want to do this manually becuase of the update frequency of mingw dxvk.
I figured a symlink would solve this issue. It worked fine for lutris as the dxvk file structure is the same and it just registers as its own dxvk version that i have to select.

I know i would have to redo the symlink for each proton update but thats every month so im ok with that.
Unless you mean any dxvk mingw update would break the symlink.

Last edited by boocheus (2022-04-23 13:02:35)

Offline

#4 2022-04-23 15:52:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,691

Re: How to redirect "DLL" files from one directory to another. [SOLVED]

1. Because of the weird "if both files were the same name but they are not and i cannot change the file names": Are you looking for lndir?
2. https://wiki.archlinux.org/title/Pacman … _to_system

Offline

#5 2022-04-23 17:01:53

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: How to redirect "DLL" files from one directory to another. [SOLVED]

I tried using lndir to tell protons dxvk directory to redirect to mingw's dxvk directory. This is the outcome.

archlinux% lndir /home/joseph/.steam/steam/compatibilitytools.d/GE-Proton7-15/files/lib64/wine/dxvk/ /usr/share/dxvk/x64/
dxvk_config.dll: Permission denied
openvr_api_dxvk.dll: Permission denied
version: Permission denied
d3d9.dll: File exists
d3d10.dll: File exists
d3d10_1.dll: File exists
d3d10core.dll: File exists
d3d11.dll: File exists
dxgi.dll: File exists

Thats all i want to do. Redirect proton's dxvk directory to mingw's dxvk directory.

Last edited by boocheus (2022-04-23 17:03:17)

Offline

#6 2022-04-23 17:33:55

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: How to redirect "DLL" files from one directory to another. [SOLVED]

See which packages provide the original files and add a pacman hook that replaces/relinks the files after update/overwrite.
https://wiki.archlinux.org/title/pacman#Hooks

Edit: On the other hand. The solution from seth above to skip updating the files in the first place makes more sense.

Last edited by Maniaxx (2022-04-23 17:44:50)


sys2064

Offline

#7 2022-04-23 18:20:14

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: How to redirect "DLL" files from one directory to another. [SOLVED]

But I dont mind the mingw dxvk updating. I dont want to stop that. Infact I want the most up to date dxvk.
I just want to know how to redirect "DLL" files from one directory to another directory. So I dont have to manually replace DLLs every update.

Last edited by boocheus (2022-04-23 18:23:09)

Offline

#8 2022-04-23 18:35:12

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: How to redirect "DLL" files from one directory to another. [SOLVED]

I'm not talking about the 'mingw dxvk' package. Its the "original" package that would overwrite the files/links. Once the original package gets updated all your links get lost. That's by design. Creating links alone is not enough.

This should work:
Link all your files with 'ln -s'. Then exclude the files from the update process (of the original package) to keep the links/files persistent.
https://wiki.archlinux.org/title/pacman … _to_system

NoExtract   = /usr/share/dxvk/x64/dxvk_config.dll /usr/share/dxvk/x64/openvr_api_dxvk.dll [...]

List original package:

$ pacman -F /usr/share/dxvk/x64/dxvk_config.dll

No matter how you redirect/link/overwrite/copy the files/folder. If Proton can read it pacman can write it. You have to stop the latter. And that's what i described above. If that's not what you want, i probably haven't understood the problem at all. tongue

Last edited by Maniaxx (2022-04-23 19:06:56)


sys2064

Offline

#9 2022-04-23 19:15:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,691

Re: How to redirect "DLL" files from one directory to another. [SOLVED]

This is the outcome.

So?
There're files in the way and your regular user has obviously not rights to write into /usr/share - is anything unclear about how to deal w/ either problem?

Offline

#10 2022-04-25 19:56:44

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: How to redirect "DLL" files from one directory to another. [SOLVED]

Alright. Im willing to conceed this as just somthing that would require a dedicated script.
Im just going to use install_dxvk.sh with --symlink to each game. For lutris it seems to have stuck dispite updates.
WINEPREFIX=/home/USERNAME/.local/share/Steam/steamapps/compatdata/239160/pfx '/usr/share/dxvk/dxvk/dxvk/setup_dxvk.sh' install --symlink for example.
If someone could correct me if the dxvk option i can select in lutris actually has a bareing in games launch from lutris it would help. Thanks. Ill consider this solved.

Last edited by boocheus (2022-04-25 20:04:29)

Offline

Board footer

Powered by FluxBB