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")