Put OS information in Help > About > Version ?

Scott Kostyshak skostysh at lyx.org
Wed Dec 7 03:21:58 UTC 2022


On Tue, Dec 06, 2022 at 10:19:18PM +0100, Stephan Witt wrote:
> Am 06.12.2022 um 22:12 schrieb Pavel Sanda <sanda at lyx.org>:
> > 
> > On Tue, Dec 06, 2022 at 12:25:53PM -0500, Scott Kostyshak wrote:
> >>>>>> For a macOS user, can we tell whether they are on Ventura or not?
> >>>>> 
> >>>>> I???ll try QSysInfo::productVersion() ???
> >>>> 
> >>>> This will show up like that:
> >>>> 
> >>>> <Bildschirmfoto 2022-12-06 um 18.01.27.jpg>
> >>>> 
> >>>> With Ventura it should be: 13.0
> >>> 
> >>> This would be the patch w/o I18N ???
> >> 
> >> Tested and works well here! I would say commit (unless someone else disagrees).
> >> 
> >> For me, the version showed up as "22.04". I actually expected my kernel
> >> version to show up.
> > 
> > I guess that's  what QSysInfo::kernelType() is for.
> > Anyway quickly checking members of QSysInfo you might actually
> > want to use QSysInfo::prettyProductName().
> 
> Indeed. This prints "macOS Mojave (10.14)“ here.

Ah yes, that is nice! Thanks, Stephan and Pavel.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221206/65993e3f/attachment.asc>


More information about the lyx-devel mailing list