Public bug reported:
Trying to detect platform (OS) name and version on Ubuntu Touch 15.04
based phones and tablets using QML. On the Ubuntu Desktop QSysInfo
provides the following _correct_ values:
QSysInfo::productType(): "ubuntu"
QSysInfo::productVersion(): "16.04"
QSysInfo::prettyProductName(): "Ubuntu 16.04 LTS"
However, in a confined environment (e.g. bq Aquaris E5 HD Ubuntu Edition
/ 15.04 OTA-11) the following _incorrect_ values are provided by
QSysInfo:
QSysInfo::productType(): "unknown"
QSysInfo::productVersion(): "unknown"
QSysInfo::prettyProductName(): "Linux 3.4.67"
I suppose it's because QSysInfo tries to (or would need to) access such
files on the filesystem that are blocked by AppArmor, like /etc/os-
release or such.
Ideally, QSysInfo::productVersion() should return not only "15.04" on an
Ubuntu Touch device, but also the OTA release number. So it should be
more like: "15.04 OTA-11". That's because "15.04" alone doesn't tell
much about the actual Ubuntu Touch OS release installed on a mobile
device.
** Affects: qtsystems-opensource-src (Ubuntu)
Importance: Undecided
Status: New
** Tags: qsysinfo
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtsystems-opensource-src
in Ubuntu.
https://bugs.launchpad.net/bugs/1607217
Title:
QSysInfo doesn't work properly with AppArmor confinement
Status in qtsystems-opensource-src package in Ubuntu:
New
Bug description:
Trying to detect platform (OS) name and version on Ubuntu Touch 15.04
based phones and tablets using QML. On the Ubuntu Desktop QSysInfo
provides the following _correct_ values:
QSysInfo::productType(): "ubuntu"
QSysInfo::productVersion(): "16.04"
QSysInfo::prettyProductName(): "Ubuntu 16.04 LTS"
However, in a confined environment (e.g. bq Aquaris E5 HD Ubuntu
Edition / 15.04 OTA-11) the following _incorrect_ values are provided
by QSysInfo:
QSysInfo::productType(): "unknown"
QSysInfo::productVersion(): "unknown"
QSysInfo::prettyProductName(): "Linux 3.4.67"
I suppose it's because QSysInfo tries to (or would need to) access
such files on the filesystem that are blocked by AppArmor, like /etc
/os-release or such.
Ideally, QSysInfo::productVersion() should return not only "15.04" on
an Ubuntu Touch device, but also the OTA release number. So it should
be more like: "15.04 OTA-11". That's because "15.04" alone doesn't
tell much about the actual Ubuntu Touch OS release installed on a
mobile device.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtsystems-opensource-src/+bug/1607217/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp