AboutTab: one more possible fix for arch commit detection

This commit is contained in:
Ly-sec
2025-11-30 11:47:35 +01:00
parent 5b5d41acf8
commit 9266ccfec4

View File

@@ -39,13 +39,13 @@ ColumnLayout {
Process { Process {
id: pacmanProcess id: pacmanProcess
command: ["pacman", "-Q", "noctalia-shell"] command: ["pacman", "-Q", "noctalia-shell-git"]
running: false running: false
onExited: function (exitCode) { onExited: function (exitCode) {
if (exitCode === 0) { if (exitCode === 0) {
var output = stdout.text.trim(); var output = stdout.text.trim();
var match = output.match(/noctalia-shell\s+(.+)/); var match = output.match(/noctalia-shell-git\s+(.+)/);
if (match && match[1]) { if (match && match[1]) {
// For Arch packages, the version format might be like: 3.4.0.r112.g3f00bec8-1 // For Arch packages, the version format might be like: 3.4.0.r112.g3f00bec8-1
// Extract just the commit hash part if it exists // Extract just the commit hash part if it exists