mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
AboutTab: one more possible fix for arch commit detection
This commit is contained in:
@@ -39,13 +39,13 @@ ColumnLayout {
|
||||
|
||||
Process {
|
||||
id: pacmanProcess
|
||||
command: ["pacman", "-Q", "noctalia-shell"]
|
||||
command: ["pacman", "-Q", "noctalia-shell-git"]
|
||||
running: false
|
||||
|
||||
onExited: function (exitCode) {
|
||||
if (exitCode === 0) {
|
||||
var output = stdout.text.trim();
|
||||
var match = output.match(/noctalia-shell\s+(.+)/);
|
||||
var match = output.match(/noctalia-shell-git\s+(.+)/);
|
||||
if (match && match[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
|
||||
|
||||
Reference in New Issue
Block a user