steamtricks icon indicating copy to clipboard operation
steamtricks copied to clipboard

Improve detection of os information

Open boombatower opened this issue 9 years ago • 4 comments

Steam prioritizes reading /etc/lsb-release instead of the more common /etc/os-release. I fixed the issue on openSUSE by updating the lsb-release packaging the build from the os-release one, but as confirmed in factory mailing list it is not intended to rebuild eachtime os-release does which makes it kinda useless for something like Tumbleweed. The steam scripts can be patched to prefer os-release, but I am not sure about the main client Help -> System information.

boombatower avatar Oct 02 '16 07:10 boombatower

/etc/lsb-release does exist, it's just in lsb core package. 'lsb' on tw. It pulled in 6MB of older libs with it, mostly kde3 and qt3.

Not exactly sure what the problem is from the above post... ? /etc/lsb-release and lsb-release -r -i are up to date on tumbleweed.

moozaad avatar Oct 02 '16 11:10 moozaad

They are not both up-to-date, only /etc/os-release.

~$ cat /etc/lsb-release
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
DISTRIB_ID="openSUSE Tumbleweed"
DISTRIB_RELEASE="20160901"
DISTRIB_CODENAME=""
DISTRIB_DESCRIPTION="openSUSE Tumbleweed"


~$ cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20160928"
ID=opensuse
ID_LIKE="suse"
VERSION_ID="20160928"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20160928"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

Not the version discrepancy. You will see the lsb-release one in steam bootup output and system information.

boombatower avatar Oct 03 '16 04:10 boombatower

Are yes, I see on yours. On mine they're both 0901, os-release does report 0928 though .

But is the version number relevant when it comes to tw? On leap does it just say 42.1?

edit:

 lsb-release -r -i

Distributor ID: SUSE LINUX
Release:        42.1

Ignoring my above, what is the exact issue? I get that steam priorities lsb over os-release, but why is that a problem?

moozaad avatar Oct 03 '16 08:10 moozaad

Nothing major, just minor as hardware surveys will report inaccurately and Steam asks that one paste the System information dump in bug reports which would be more accurate with TW version since that gives a better idea of what version of all packages.

boombatower avatar Oct 03 '16 20:10 boombatower