Skip to content

flatpak: cabextract workaround #27

@r-ml

Description

@r-ml

I stumbled upon a game that has gold reports on protondb, but requires protontricks modifications. Therefore I followed the steps in the wiki to get that set up. I came across the same problems as in #25, but that has since been solved. Then, the problem was that cabextract was missing.

The wiki states that the flatpak version of steam does not include some libraries used by winetricks.

Workaround

The solution I found was adding it manually:

Compile latest

git clone https://github.com/kyz/libmspack.git
cd libmspack/cabextract
./autogen.sh

/usr/local/bin is read-only inside the flatpak, adding the prefix becomes necessary

./configure --prefix=$HOME/.local

gcc (requirement) is not present in the flatpak, the compilation needs to be made outside

make

Install it inside the flatpak

cd ..
mv cabextract $HOME/.var/app/com.valvesoftware.Steam
flatpak run --command=bash com.valvesoftware.Steam
cd cabextract
make install
exit

Add path to PATH as env

The last step is to add the binary located in .local/bin to the command. As it is the same location as the protontricks binary, the path to it is no longer necessary, changing the alias in the .bashrc file to:

alias protontricks-flat='flatpak run --env=WINETRICKS=$HOME/winetricks --env=STEAM_RUNTIME=0 --env=PATH=$PATH:$HOME/.local/bin --command=protontricks com.valvesoftware.Steam'

I suppose adding other libraries would be similar, but I haven't had the need yet.

@Matoking I dunno if you want this in the wiki or not, as its kinda specific to cabextract and might be clutter for people that don't require it.

Either way, if someone comes looking for an answer, I hope this points them in the right direction!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions