diff --git a/client/auth.go b/client/auth.go index 3c49e3f..ca32814 100644 --- a/client/auth.go +++ b/client/auth.go @@ -130,9 +130,9 @@ func isTokenValid(user *db.User) bool { func createChromeContext(headless bool) (context.Context, context.CancelFunc) { // Check if Google Chrome or Chromium is available in the path var execPath string - if path, err := exec.LookPath("chromium"); err == nil { + if path, err := exec.LookPath("google-chrome"); err == nil { execPath = path - } else if path, err := exec.LookPath("google-chrome"); err == nil { + } else if path, err := exec.LookPath("chromium"); err == nil { execPath = path } else if path, err := exec.LookPath("chrome"); err == nil { execPath = path diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index cf97431..c59d8cb 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: gogg -version: '0.1.0' +version: '0.1.1' summary: Gogg downloader description: | Gogg is a minimalistic command-line tool for downloading game files from GOG.com. @@ -9,8 +9,8 @@ description: | For more information, please see Gogg's documentation on GitHub (https://github.com/habedi/gogg/docs/README.md). base: core24 -confinement: strict -grade: devel +confinement: classic +grade: stable compression: lzo assumes: - snapd2.54 # Minimum version of Snapd required