Open Bug 680128 Opened 14 years ago Updated 3 years ago

Get Linux distribution information for e.g. update ping

Categories

(Firefox :: General, defect)

All
Linux
defect

Tracking

()

People

(Reporter: glandium, Unassigned)

Details

The update url is currently: https://aus3.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml The URL formatter replaces DISTRIBUTION and DISTRIBUTION_VERSION with the content of the distribution.id and distribution.version preferences, which in turn, if I'm reading the whole thing correctly, are initialized from a distribution/distribution.ini file in the Firefox directory. This means that in practice, as Mozilla builds are not going shipping this file, we don't get any meaningful information about the distribution being used. It also means that currently, the ones in position of filling this information are the very ones that won't use the update service (distribution packages are updated with the distro packaging system). While I can imagine the purpose of these fields to be about other redistributors, it may also make sense to make that information meaningful for Mozilla builds by actually getting the distribution name and version from the OS. Most Linux distributions should have a lsb_release script that can return this information (though, for example, the one in Debian and Ubuntu is a python script, so it has some execution overhead, which should be kept in mind if the value would be gotten during startup). Filing in Firefox:General because I'm unsure at what level this should be done (xpcom/SystemInfo.cpp, browser/components/distribution.js), etc.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.