[SailfishDevel] How to detect SailfishOS version in runtime?
Luciano Montanaro
mikelima at gmail.com
Tue Mar 24 08:13:24 UTC 2015
I am not sure checking for a "OS version" it is the right approach in
general either. Unless you want it to attach to bug reports or such
things, you shpould check for the library or component version
instead. Different devices may have different components... i.e. we
can be sure the kernel for the tablet will be a different version from
the phone, and different phones will surely have different kernel
versions.
But maybe I am too rooted in linux development, where "OS version" is
a meaningless concept (you have to deal with 2 releases each year of
Ubuntu Suse, RedHat, Debian...).
Cheers,
Luciano
On Tue, Mar 24, 2015 at 6:53 AM, Kimmo Lindholm <Kimmo.Lindholm at eke.fi> wrote:
> afaik no, but you can read it from file /etc/sailfish-release and look for VERSION_ID=
>
>
> -kimmo
>
> ________________________________________
> Lähettäjä: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] käyttäjän Mykola Vovchok [nicovov at gmail.com] puolesta
> Lähetetty: 24. maaliskuuta 2015 04:36
> Vastaanottaja: Devel at lists.sailfishos.org
> Aihe: [SailfishDevel] How to detect SailfishOS version in runtime?
>
> Hi!
>
> Is there API available to get SailfishOS version in runtime?
>
> Thanks,
> Nick.
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
--
Luciano Montanaro
Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
More information about the Devel
mailing list