Skip to content

Commit

Permalink
Fix incorrect binary path
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Feb 9, 2024
1 parent 01f36cc commit aeb9888
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions com.quexten.Goldwarden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
7 changes: 4 additions & 3 deletions gui/src/services/goldwarden.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
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"
Expand All @@ -17,19 +19,18 @@
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()

Expand Down

0 comments on commit aeb9888

Please sign in to comment.