Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os shows abnormal in mac osx #766

Open
marslojiao-mvl opened this issue May 16, 2023 · 2 comments
Open

os shows abnormal in mac osx #766

marslojiao-mvl opened this issue May 16, 2023 · 2 comments

Comments

@marslojiao-mvl
Copy link

I'm submitting a bug report

[ x] bug report
[ ] new distro request

Bug report


                 -/+:.          marslo@iMarslo
                :++++.          OS: 64bit Mac OS X 	13.3.1
ProductVersionExtra:	(a) 	22E772610a
               /+++/.           Kernel: x86_64 Darwin 22.4.0
       .:-::- .+/:-``.::-       Uptime: 2h 59m
    .:/++++++/::::/++++++/:`    Packages: 373
  .:///////////////////////:`   Shell: bash 5.2.15
  ////////////////////////`     Resolution: 2880x1800
 -+++++++++++++++++++++++`      DE: Aqua
 /++++++++++++++++++++++/       WM: Quartz Compositor
 /sssssssssssssssssssssss.      WM Theme: Graphite (Dark)
 :ssssssssssssssssssssssss-     Font: ComicMono 26.5
  osssssssssssssssssssssssso/`  Disk: 193G / 251G (77%)
  `syyyyyyyyyyyyyyyyyyyyyyyy+`  CPU: Intel Core i7-8750H @ 2.20GHz
   `ossssssssssssssssssssss/    GPU: Intel UHD Graphics 630 / Radeon Pro 555X
     :ooooooooooooooooooo+.     RAM: 9187MiB / 16384MiB
      `:+oo+/:-..-:/+o+/-

issue comes from ProductVersionExtra in sw_ver

$ sw_vers | grep 'ProductVersion'
ProductVersion:		13.3.1
ProductVersionExtra:	(a)

details:
screenfetch-osx-os-issue

@marslo
Copy link

marslo commented May 17, 2023

hmm... I've noticed the latest screenfetch-dev using better solution to show ProductionVesion and BuildVersion via

$ sw_vers --productVersion
13.3.1
$ sw_vers --buildVersion
22E772610a

However, the version was cut off. here are pull request: #767

@cheng470
Copy link

cheng470 commented Aug 18, 2023

hmm... I've noticed the latest screenfetch-dev using better solution to show ProductionVesion and BuildVersion via

$ sw_vers --productVersion
13.3.1
$ sw_vers --buildVersion
22E772610a

However, the version was cut off. here are pull request: #767

The syntax of the sw_vers command is not quite the same as yours :

$ sw_vers --productVersion
Usage: sw_vers [-productName|-productVersion|-buildVersion]
$ sw_vers -productVersion 
12.6.8
$ sw_vers -buildVersion  
21G725

I had to modify the script to fit my MacOS.

Below way is more safe:

$ sw_vers | grep -i productversion | awk '{print $2}'
12.6.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants