Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use Native System Wine as Compatibility Tool In Steam
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
gekret005
n00b
n00b


Joined: 07 Jan 2023
Posts: 11

PostPosted: Sat Jan 07, 2023 7:11 pm    Post subject: Use Native System Wine as Compatibility Tool In Steam Reply with quote

I'd like to use the native versions of wine/proton on my system rather than utilizing the builds of proton Valve ships. Does anyone have a method of achieving this?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31335
Location: here

PostPosted: Sat Jan 07, 2023 7:15 pm    Post subject: Reply with quote

Welcome to gentoo forum.

Maybe installing app-emulation/wine-vanilla or app-emulation/wine-proton?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gekret005
n00b
n00b


Joined: 07 Jan 2023
Posts: 11

PostPosted: Sat Jan 07, 2023 7:20 pm    Post subject: Reply with quote

Thanks, but I guess I need to be more specific, I have versions of wine on my system already and I can run games outside of steam, but this doesn't let me run games that require the steam client without running the steam client a second time in wine, or need EAC garbage to startup. What I'm asking is if there's a good method to add a compatibility tool to steam like proton-GE-custom, but instead of a packed build of wine it just goes to the main system wine at /usr/bin/wine.
Code:

$ eselect wine list
Available Wine slots:
  [1]   wine-proton-7.0.5 * (main)
  [2]   wine-proton-7.0.9999

  [3]   wine-staging-7.22 *
  [4]   wine-staging-9999

  [5]   wine-vanilla-7.22 *
  [6]   wine-vanilla-9999
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 665

PostPosted: Sat Jan 07, 2023 11:10 pm    Post subject: Reply with quote

Whilst wine is at the core of proton, there is a lot wrapped around it.
My suggestion would be to install a GloriousEggroll instance in compatibilitytools.d, then do a quick and dirty hack by dropping the wine binaries you want to use in this instance over the top, or (preferably) try and do it properly by making the contents of the /files/bin /files/lib and /files/lib64 symlinks to native files.

It's an interesting concept that it's possible to create a Proton-gentoo-native by wrapping GE's protonfixes and proton around a native gentoo wine, but GE does such good work at staying on the top of the wave that it feels like a lot of work for not much return.
Back to top
View user's profile Send private message
gekret005
n00b
n00b


Joined: 07 Jan 2023
Posts: 11

PostPosted: Tue Jan 17, 2023 7:41 pm    Post subject: Reply with quote

I looked into symlinking and whatnot but it would be such a dirty mess as it's all packaged different and I'm not even certain it's going to work. I guess at some point I could see about porting over this pkgbuild to an ebuild https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=proton-ge-custom so that I could compile it against my own system's libraries, but I guess using the same version of wine for both steam and outside of steam are out of the question as I couldn't find anything about it.
Back to top
View user's profile Send private message
s_j_newbury
n00b
n00b


Joined: 05 Apr 2007
Posts: 58
Location: UK

PostPosted: Tue Dec 10, 2024 2:47 pm    Post subject: Reply with quote

This really shouldn't be too difficult. I've been using my own custom proton build and have replaced most of the custom built components utilised in the "proton" wrapper. Utilising the system wine isn't really a big step, the only reason I haven't already done so is due the proton specific patches such as fshack which are useful for Steam. Since Gentoo now has a wine-proton build this isn't even necessary anymore. This will also make it easy to add support for winewayland, so I'll see if I can come up with something which works including adding winewayland support.
Back to top
View user's profile Send private message
s_j_newbury
n00b
n00b


Joined: 05 Apr 2007
Posts: 58
Location: UK

PostPosted: Wed Dec 11, 2024 9:59 pm    Post subject: Reply with quote

s_j_newbury wrote:
This really shouldn't be too difficult. I've been using my own custom proton build and have replaced most of the custom built components utilised in the "proton" wrapper. Utilising the system wine isn't really a big step, the only reason I haven't already done so is due the proton specific patches such as fshack which are useful for Steam. Since Gentoo now has a wine-proton build this isn't even necessary anymore. This will also make it easy to add support for winewayland, so I'll see if I can come up with something which works including adding winewayland support.

The challenge here is to dynamically recompile lsteamclient.dll for the eselected Wine version from the proton wrapper when the prefix is updated. This requires either determining when wine would trigger a prefix update, or keeping track of the target version in the prefix, perhaps with a text file storing the wine version. The former would be better, and trying to figure out how Wine determines the prefix to need updating. If anybody knows where to look i the code base a hint would be welcomed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum