Put OS information in Help > About > Version ?
Stephan Witt
st.witt at gmx.net
Tue Dec 6 21:19:18 UTC 2022
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.
Stephan
More information about the lyx-devel
mailing list