mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2025-12-06 06:36:15 +00:00
AboutTab: one more possible fix for arch commit detection
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user