From 33d15f289db2b460254a01b06c147983f49e745b Mon Sep 17 00:00:00 2001 From: rokosun Date: Mon, 1 Jan 2024 14:41:17 +0000 Subject: [PATCH] Update sharedModule.nim --- sharedModule.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sharedModule.nim b/sharedModule.nim index 6c079ec..c64f90f 100644 --- a/sharedModule.nim +++ b/sharedModule.nim @@ -1,4 +1,5 @@ from std/osproc import startProcess, ProcessOption, waitForExit, close +from std/os import fileExists proc runCommand*(command: string, args: openArray[string]): int = ## This will run a command with the given args and return its exit code upon completion @@ -7,4 +8,4 @@ proc runCommand*(command: string, args: openArray[string]): int = process.close() proc isGlobalMenuEnabled*(): bool = - return runCommand("/usr/bin/pacman", ["-Qq", "vala-panel-appmenu-registrar"]) == 0 + return fileExists("/usr/lib/vala-panel/appmenu-registrar")