fix(about): show noctalia-qs new version string

This commit is contained in:
Lemmy
2026-03-18 19:16:12 -04:00
parent 5547a2716d
commit 7a65416170
2 changed files with 13 additions and 3 deletions
+9
View File
@@ -1899,6 +1899,15 @@
"subTab": 2,
"subTabLabel": "common.history"
},
{
"labelKey": "panels.notifications.rules-label",
"descriptionKey": "panels.notifications.rules-description",
"widget": "NLabel",
"tab": 9,
"tabLabel": "common.notifications",
"subTab": 5,
"subTabLabel": "panels.notifications.rules-tab"
},
{
"labelKey": "panels.notifications.sounds-unavailable-label",
"descriptionKey": "panels.notifications.sounds-unavailable-description",
@@ -258,12 +258,13 @@ ColumnLayout {
onExited: function (exitCode) {
if (exitCode === 0) {
var output = stdout.text.trim();
// Format: "noctalia-qs 0.3.0, revision abc12345, distributed by: ..."
// Format (old): "noctalia-qs 0.3.0, revision abc12345, distributed by: ..."
// Format (new): "noctalia-qs 0.0.9 (revision b602b69c81d96a1d7c645328feb7b1e1d4b7b7a4, distributed by Unset)"
// Only set if this is actually noctalia-qs; leave empty for upstream quickshell
var match = output.match(/noctalia-qs\s+(\S+),\s+revision\s*([0-9a-f]*)/i);
var match = output.match(/noctalia-qs\s+(\S+?)[\s,(]+revision\s*([0-9a-f]*)/i);
if (match) {
root.qsVersion = match[1];
root.qsRevision = match[2];
root.qsRevision = match[2] ? match[2].substring(0, 9) : "";
}
}
}