mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +09:00
[Basilisk] Report GTK version in about dialog for Linux builds
This commit is contained in:
parent
04e9b40d4b
commit
a03283044e
1 changed files with 7 additions and 0 deletions
|
|
@ -69,6 +69,13 @@ function init(aEvent)
|
||||||
let arch = bundle.GetStringFromName(archResource);
|
let arch = bundle.GetStringFromName(archResource);
|
||||||
versionField.textContent += ` (${arch})`;
|
versionField.textContent += ` (${arch})`;
|
||||||
|
|
||||||
|
// TODO: when we get rid of appconstants make this check for Unix and not MacOS
|
||||||
|
if (AppConstants.platform == "linux") {
|
||||||
|
// If Linux append the toolkit "(GTK2)" or "(GTK3)"
|
||||||
|
let toolkit = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULRuntime).widgetToolkit.toUpperCase();
|
||||||
|
versionField.textContent += ` (${toolkit})`;
|
||||||
|
}
|
||||||
|
|
||||||
// Get Release Notes URL from Preferences
|
// Get Release Notes URL from Preferences
|
||||||
let releaseNotesURL = Services.prefs.getCharPref("app.releaseNotesURL");
|
let releaseNotesURL = Services.prefs.getCharPref("app.releaseNotesURL");
|
||||||
document.getElementById("releasenotes").setAttribute("href", releaseNotesURL);
|
document.getElementById("releasenotes").setAttribute("href", releaseNotesURL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue