Closed RaduAvramescu closed 1 year ago
Thanks.
I'm wondering, does it cause any problems or is it just a message being displayed?
Nevertheless, I should change the code to use /etc/os-release
I assume that the file exists on SteamOS as well. I will check that as it is the main purpose to detect if ProtonUp-Qt is running on the Steam Deck.
Thanks.
I'm wondering, does it cause any problems or is it just a message being displayed?
Nevertheless, I should change the code to use
/etc/os-release
I assume that the file exists on SteamOS as well. I will check that as it is the main purpose to detect if ProtonUp-Qt is running on the Steam Deck.
Thanks as well!
No, I haven't encountered any issues other than https://github.com/DavidoTek/ProtonUp-Qt/issues/147 but it looks like that has already been fixed and it's unrelated.
Anyway, I'm not really sure if /etc/os-release
is really "better" than /etc/lsb-release
. The one that has the widest support (and still supports the Steam Deck) should be used by default, I suppose.
It would probably be a better idea to check if the former/latter exists on the system, and if it does, use that. If it doesn't exist, look for the other file. But I don't know anything about Python so I don't know how easy it is to do, and of course it's up to you to decide what is the best solution to go for.
I know this is closed but just wanted to throw it out there: The check here is for Steam Deck / SteamOS in SteamTinkerLaunch. It's also the same check pretty much that SteamTinkerLaunch does itself to tell if it's on SteamOS. So the check in PUPQT would work on Steam Deck, but would show the error on distros that didn't have this file.
I have only tested ProtonUp-Qt on Arch and SteamOS 3, so I never caught this in testing :-) Good find!
Yeah, I think this issue wasn't too big of a deal as of now as it either detects SteamOS or not (not here means not steamos
or no file
).
Could be useful in the future though if we need to, for some reason, detect other OSes.
Describe the bug
When opening ProtonUp-Qt from the terminal, the following error can be observed:
cat: /etc/lsb-release: No such file or directory
To Reproduce Steps to reproduce the behavior:
flatpak run net.davidotek.pupgui2
Expected behavior
The error does not appear in the terminal output
Desktop (please complete the following information):
Additional context
Of note is that the error appears twice, once before
Loaded ctmod SteamTinkerLaunch
and another time after. I assume/etc/lsb-release
is distro specific as it does not exist on my Fedora system. However,/etc/os-release
does exist and provides the following output, if it's helpful:Terminal output