Fix incorrect binary path

This commit is contained in:
Bernd Schoolmann 2024-02-09 22:51:37 +01:00
parent 01f36cc571
commit aeb9888f7f
No known key found for this signature in database
2 changed files with 8 additions and 7 deletions

View File

@ -17,12 +17,12 @@ finish-args:
- --talk-name=org.gnome.ScreenSaver
- --talk-name=org.freedesktop.ScreenSaver
# Lock on idle
- --talk-name=org.gnome.Mutter.IdleMonitor
# Notifications
- --talk-name=org.freedesktop.Notifications
# Home directory access to setup browser ipc, can posibly restrict this further if requried by listing each browser's nativehost directory separately
- --filesystem=home
# pinentry & approval
- --talk-name=org.gnome.keyring.SystemPrompter
# biometric / user password auth
@ -51,7 +51,7 @@ modules:
- name: goldwarden-core-daemon
buildsystem: simple
build-commands:
- install -D goldwarden /app/bin/src/goldwarden
- install -D goldwarden /app/bin/goldwarden
sources:
- type: file
path: ./goldwarden

View File

@ -3,6 +3,8 @@ import json
import os
from pathlib import Path
from threading import Thread
from shutil import which
import sys
is_flatpak = os.path.exists("/.flatpak-info")
log_directory = str(Path.home()) + "/.local/share/goldwarden"
@ -17,19 +19,18 @@ BINARY_PATHS = [
str(Path.home()) + "/go/src/github.com/quexten/goldwarden/goldwarden"
]
BINARY_PATH = ""
BINARY_PATH = None
for path in BINARY_PATHS:
if os.path.exists(path):
BINARY_PATH = path
break
if BINARY_PATH == None:
if BINARY_PATH is None:
BINARY_PATH = which('goldwarden')
if isinstance(BINARY_PATH,str):
BINARY_PATH = BINARY_PATH.strip()
if BINARY_PATH == None:
if BINARY_PATH is None:
print("goldwarden executable not found")
sys.exit()