protontricks icon indicating copy to clipboard operation
protontricks copied to clipboard

Protontricks exits after pointing to prefix.

Open lavadrop opened this issue 5 months ago • 6 comments

Trying to run a mod inside a prefix, protontricks fails with several messages, both with distribution packages and flatpak.

Steps to reproduce the behavior:

  1. Run GUI Protontricks.
  2. Errors:
Your version of wine  is no longer supported upstream. You should upgrade to 8.x

WINEPREFIX INFO:
Drive C: total 0
drwxr-xr-x. 1 user user 138 Jun 29 12:09 .
drwxr-xr-x. 1 user user 192 Jun 29 12:10 ..
drwxr-xr-x. 1 user user 118 Jun 29 11:56 Program Files
drwxr-xr-x. 1 user user 128 Jun 29 11:56 Program Files (x86)
drwxr-xr-x. 1 user user  44 Jun 27 20:06 ProgramData
drwxr-xr-x. 1 user user  34 Jun 29 12:09 openxr
drwxr-xr-x. 1 user user  30 Jun 27 19:58 users
drwxr-xr-x. 1 user user   6 Jun 27 19:58 vrclient
drwxr-xr-x. 1 user user 538 Jun 29 12:00 windows

/home/user/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/Proton Experimental/bin/wine cmd.exe /c echo '%AppData%' returned empty string, error message "steam-runtime-launch-client[286]: W: The --socket option is deprecated. Prefer to use the session bus.

/home/user/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/Proton Experimental/bin/wine: line 170: /home/user/Games/Lilith/SteamLibrary/steamapps/common/Proton - Experimental/files/bin/wine: Permission denied" 

Registry info:
/home/user/Games/Morrigan/SteamLibrary/steamapps/compatdata/1173770/pfx/system.reg:#arch=win64
/home/user/Games/Morrigan/SteamLibrary/steamapps/compatdata/1173770/pfx/user.reg:#arch=win64
/home/user/Games/Morrigan/SteamLibrary/steamapps/compatdata/1173770/pfx/userdef.reg:#arch=win64

Expected behavior Protontricks loads menu.

**System:

  • Distro: openSUSE Tumbleweed
  • Protontricks installation method: community package and flatpak (not both concurrently)
  • Protontricks version: latest flatpak 1.12.1
  • Steam version: 1747701111

lavadrop avatar Jun 30 '25 05:06 lavadrop

wine: Permission denied suggests that the script created by Protontricks cannot be used by Protontricks for some reason. This could be due to the mount lacking execute rights, though I'm not sure.

Can you try running mount and checking which of the mounts have noexec enabled?

Matoking avatar Jun 30 '25 16:06 Matoking

Sure:

/dev/mapper/system-root on / type btrfs (rw,relatime,seclabel,ssd,space_cache=v2,subvolid=380,subvol=/@/.snapshots/62/snapshot)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=16356328k,nr_inodes=4089082,mode=755,inode64)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate,memory_recursiveprot)
none on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime,seclabel)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,size=6556400k,nr_inodes=819200,mode=755,inode64)
tmpfs on /run/credentials/systemd-cryptsetup@cr_ata\x2dSamsung_SSD_860_EVO_1TB_S3Z8NB1KB73233H\x2dpart2.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,seclabel,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,nosuid,noexec,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=4554)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime,seclabel)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime,seclabel)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime,seclabel)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,seclabel,pagesize=2M)
tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,seclabel,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel,nr_inodes=1048576,inode64)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/system-root on /.snapshots type btrfs (rw,relatime,seclabel,ssd,space_cache=v2,subvolid=264,subvol=/@/.snapshots)
/dev/mapper/system-root on /boot/grub2/i386-pc type btrfs (rw,relatime,seclabel,ssd,space_cache=v2,subvolid=263,subvol=/@/boot/grub2/i386-pc)
/dev/mapper/system-root on /boot/grub2/x86_64-efi type btrfs (rw,relatime,seclabel,ssd,space_cache=v2,subvolid=262,subvol=/@/boot/grub2/x86_64-efi)
/dev/mapper/system-root on /opt type btrfs (rw,relatime,seclabel,ssd,space_cache=v2,subvolid=261,subvol=/@/opt)
/dev/mapper/system-root on /root type btrfs (rw,relatime,seclabel,ssd,space_cache=v2,subvolid=260,subvol=/@/root)
/dev/mapper/system-root on /srv type btrfs (rw,relatime,seclabel,ssd,space_cache=v2,subvolid=259,subvol=/@/srv)
/dev/mapper/system-root on /usr/local type btrfs (rw,relatime,seclabel,ssd,space_cache=v2,subvolid=258,subvol=/@/usr/local)
/dev/mapper/system-root on /var type btrfs (rw,relatime,seclabel,ssd,space_cache=v2,subvolid=257,subvol=/@/var)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/mapper/system-home on /home type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)
/dev/nvme0n1 on /home/user/Games/Lilith type btrfs (rw,noatime,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,commit=120,subvolid=5,subvol=/,x-gvfs-show)
/dev/nvme1n1 on /home/user/Games/Morrigan type btrfs (rw,noatime,seclabel,compress=zstd:1,ssd,discard=async,space_cache=v2,commit=120,subvolid=5,subvol=/,x-gvfs-show)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/credentials/[email protected] type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,seclabel,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=3278196k,nr_inodes=819549,mode=700,uid=1000,gid=1000,inode64)
appimaged-869-x86_64.AppImage on /tmp/.mount_appimaIDiDMo type fuse.appimaged-869-x86_64.AppImage (ro,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime,seclabel)

lavadrop avatar Jul 01 '25 06:07 lavadrop

OK, I don't see any of the mounts having the noexec option that would explain this. Could be something related to the wine binary itself that the helper script in question is trying to call.

You can try checking where Proton Experimental is installed by right-clicking in the Steam library and selecting Properties -> Installed Files -> Browse.... This should open the directory in a file browser. Copy the path and run the following command:

$ flatpak run --command="/PATH_HERE/files/bin/wine" com.github.Matoking.protontricks

which in my case results in this:

$ flatpak run --command="/home/matoking/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Proton - Experimental/files/bin/wine" com.github.Matoking.protontricks
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit

If the usage text is printed as above, that would confirm that the filesystem permissions are in order. If not, then it's possible that some permissions are missing, in which case you can add the paths using Flatseal.

Matoking avatar Jul 01 '25 17:07 Matoking

bwrap: execvp ~/Games/Morrigan/SteamLibrary/steamapps/common/Proton - Experimental/files/bin/wine: No such file or directory

lavadrop avatar Jul 02 '25 05:07 lavadrop

Replace ~ with your home path (eg. /home/matoking) and run the command again; flatpak command will not evaluate the tilde automatically.

Matoking avatar Jul 02 '25 16:07 Matoking

Ok, yeah seems permissions are fine:

Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit

lavadrop avatar Jul 03 '25 00:07 lavadrop