Giter VIP home page Giter VIP logo

Comments (4)

sonic2kk avatar sonic2kk commented on August 14, 2024

Does the v2.9.2 AppImage work? v2.9.2 is not available as Flatpak yet (flathub/net.davidotek.pupgui2#27).

Based on the FileNotFound error, sounds like a duplicate of these issues (should be fixed by #356):

I'd be interested to know what option you selected. Was it the Custom Install Location by any chance? The three dots to the right of the dropdown.


Note though that if ~/.local/share/Steam/config/config.vdf or ~/.local/share/Steam/config/libraryfolders.vdf doesn't exist, this likely means your Steam installation is invalid.

The crash is caused because if the Steam path exists (in this case, ~/.local/share/Steam) but the data files that a typical Steam install has does not exist (in this case, config.vdf and libraryfolders.vdf) then ProtonUp-Qt wouldn't have bailed out at this point. With v2.9.2, it won't attempt to use a Steam installation if those files don't exist.

from protonup-qt.

AirisLuna avatar AirisLuna commented on August 14, 2024

Note though that if ~/.local/share/Steam/config/config.vdf or ~/.local/share/Steam/config/libraryfolders.vdf doesn't exist, this likely means your Steam installation is invalid.

I am using the Flatpak version of Steam, maybe that is the issue? Steam itself works fine and without any issues, however the folders/files you mentioned indeed to not exist.

I'd be interested to know what option you selected. Was it the Custom Install Location by any chance? The three dots to the right of the dropdown.

I was checking options and misclicked, so I'm not exactly sure which one did I choose, but as soon I did, I got the mentioned error and couldn't open ProtonQt-Up again.

Does the v2.9.2 AppImage work? v2.9.2 is not available as Flatpak yet (flathub/net.davidotek.pupgui2#27).

I downloaded the AppImage and it did work. Considering it's already a fixed issue that only needs to be upstreamed to the flatpak version, I will mark this as solved. Thank you for your support.

from protonup-qt.

sonic2kk avatar sonic2kk commented on August 14, 2024

Glad it's working!

I am using the Flatpak version of Steam, maybe that is the issue?

Yes, that may be the issue. You or your distribution may have shipped a Steam installation that was not Flatpak at some point, thus causing the problem. If you have a Steam folder structure from a prior installation but without the data files, ProtonUp-Qt v2.9.1 will crash (the Flatpak is actually v2.9.1, some metadata was just missing).

Or perhaps...

I was checking options and misclicked, so I'm not exactly sure which one did I choose, but as soon I did, I got the mentioned error and couldn't open ProtonQt-Up again.

Hmm, maybe ProtonUp-Qt somehow created a folder structure that it expected to appear. It used to default the Steam installation folder to ~/.local/share/Steam if it couldn't find Steam, so maybe something went wrong there (maybe the Games List or something? I'm not sure).

DavidoTek might be able to comment more if there's any potential that ProtonUp-Qt could erroneously have created this folder structure, if you never had anything except Flatpak Steam installed before. _STEAM_ROOT may have been improperly set and somehow ended up creating the folder structure, since the path in your screenshot matches the previous default of ~/.local/share/Steam.

Shouldn't happen anymore but might be an interesting avenue to explore to try and prevent ProtonUp-Qt from creating these folders (unless it is intentionally doing so and I am unaware).

Considering it's already a fixed issue that only needs to be upstreamed to the flatpak version, I will mark this as solved.

Yeah, the AppImage is usually released first, and then the Flatpak gets updated some time later. Should be available soon :-)

from protonup-qt.

DavidoTek avatar DavidoTek commented on August 14, 2024

DavidoTek might be able to comment more if there's any potential that ProtonUp-Qt could erroneously have created this folder structure, if you never had anything except Flatpak Steam installed before. _STEAM_ROOT may have been improperly set and somehow ended up creating the folder structure, since the path in your screenshot matches the previous default of ~/.local/share/Steam.

ProtonUp-Qt does indeed create the compatibilitytools.d folder (and similar for other launchers) when it is started. That only happens when the parent folder (e.g., ~/.local/share/Steam) exists. We do this as there were cases where the compatibility tools folder did not exist for some reason.
It wouldn't create the parent folder though, so not sure why that exists.
I also checked the Flatpak, there is no :create flag set for the Steam location. Maybe in previous Flatpak version, os.path.exist would return True if the path is mapped, but does not actually exist? (just a though, definitively not the case any more if it ever was)


Code References:

ProtonUp-Qt/pupgui2/util.py

Lines 183 to 196 in 4ddd037

def create_compatibilitytools_folder() -> None:
"""
Create compatibilitytools folder if launcher is installed but compatibilitytools folder doesn't exist
Will check all launchers specified in constants.POSSIBLE_INSTALL_LOCATIONS
"""
for loc in POSSIBLE_INSTALL_LOCATIONS:
install_dir = os.path.normpath(os.path.expanduser(loc['install_dir']))
parent_dir = os.path.abspath(os.path.join(install_dir, os.pardir))
if os.path.exists(parent_dir) and not os.path.exists(install_dir):
try:
os.mkdir(install_dir)
except Exception as e:
print(f'Error trying to create compatibility tools folder {str(install_dir)}: {str(e)}')

https://github.com/flathub/net.davidotek.pupgui2/blob/2e8b0a7158dadf0d7c0b94f5d56be565f0997fcc/net.davidotek.pupgui2.json#L12-L14

from protonup-qt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.