So it looks like i got it working when the proton dlls are properly linked and the environment variable PRESSURE_VESSEL_FILESYSTEMS_RO=/var/games/pfx_proton-ge-custom
is set when starting steam.
Here is my script to fix the links:
#!/usr/bin/env python3
import os
import sys
pkg_path = sys.argv[1]
print(pkg_path)
#Walk all files under pkg
for dirpath, dirname, filename in os.walk(pkg_path):
for file in filename:
file_full_path = os.path.join(dirpath, file)
#Check for symlinks
if os.path.islink(file_full_path):
if "../../../../" in os.readlink(file_full_path):
file_link = os.readlink(file_full_path)
file_link_final = "/usr/share/steam/compatibilitytools.d/proton-ge-custom/dist/" + file_link.replace("../","")
os.remove(file_full_path)
os.symlink(file_link_final,file_full_path)
And the changes to the PKGBUILD:
--- proton-ge-custom-bin/PKGBUILD 2020-12-07 09:41:45.274999875 +0100
+++ proton-ge-custom-bin_test_2/PKGBUILD 2020-12-07 18:48:52.482806829 +0100
@@ -5,7 +5,7 @@
pkgdesc="A fancy custom distribution of Valves Proton with various patches"
pkgname=proton-ge-custom-bin
pkgver=5.21_GE_1
-pkgrel=1
+pkgrel=3
arch=('x86_64')
license=('BSD' 'LGPL' 'zlib' 'MIT' 'MPL' 'custom')
changelog=changelog
@@ -48,9 +48,11 @@
## sources
url='https://github.com/GloriousEggroll/proton-ge-custom'
source=(${_pkgname}-${_pkgver}_${pkgrel}.tar.gz::"${url}/releases/download/${_pkgver}/${_srcdir}.tar.gz"
- "supplementary.tar.zst")
+ "supplementary.tar.zst"
+ "fixlink.py")
md5sums=('32a562a772a9b56ff03287978a153227'
- '5d6781563275b942f0cff1fb172bfd8d')
+ '5d6781563275b942f0cff1fb172bfd8d'
+ 'c4462a64caa48323cdd1183e75c50b13')
build() {
## setup paths
@@ -72,6 +74,7 @@
## config files
install --mode=0775 --group=games ${srcdir}/configs/user_settings.py ${pkgdir}/${_protoncfg}
## default pfx
+python3 fixlink.py ${_srcdir}
mv ${_srcdir}/dist/share/default_pfx/* ${pkgdir}/${_pfxdir}
chown -R :games ${pkgdir}/${_pfxdir}
## executables```
Im pretty sure that directly calling a script in the PKGBUILD is against best practice and it should probably be added to a install file or something similar. But to try if it is working it was easier this way.
Pinned Comments
PedroHLC commented on 2021-07-27 19:39 (UTC)
The "chaotic-aur" co-maintainer is a bot that pulls any merged PR in https://github.com/chaotic-aur/pkgbuild-proton-ge-custom-bin back to this package. So if you guys have contributions or bump versions earlier than the maintainer, please share them as PRs. The commits will keep your authorship.
Happy gaming!