GlitterWare / Passy

Offline password manager with cross-platform synchronization
https://glitterware.github.io/Passy/
GNU General Public License v3.0
142 stars 22 forks source link

[Bug]: Server installation error on linux appimage #99

Closed turtaf closed 6 months ago

turtaf commented 6 months ago

Bug description

I tried to setup a server on Linux.

  1. step, tried from flatpak installation, but as far as I understood it is not possible, so
  2. I installed party appimage version and as I try to install server from there I get the following error message:
Exception: Couldn't find the executable zenity in the path.
#0      isExecutableOnPath (package:file_picker/src/utils.dart:60)
<asynchronous suspension>
#1      FilePickerLinux._getPathToExecutable (package:file_picker/src/linux/file_picker_linux.dart:119)
<asynchronous suspension>
#2      FilePickerLinux.getDirectoryPath (package:file_picker/src/linux/file_picker_linux.dart:64)
<asynchronous suspension>
#3      _ServerSetupScreen._onInstallPressed (package:passy/screens/server_setup_screen.dart:57)
<asynchronous suspension>

Expected outcome

Having the server (somehow) installed

Steps to reproduce

Launch snappy appimage install server

Error log

Exception: Couldn't find the executable zenity in the path.
#0      isExecutableOnPath (package:file_picker/src/utils.dart:60)
<asynchronous suspension>
#1      FilePickerLinux._getPathToExecutable (package:file_picker/src/linux/file_picker_linux.dart:119)
<asynchronous suspension>
#2      FilePickerLinux.getDirectoryPath (package:file_picker/src/linux/file_picker_linux.dart:64)
<asynchronous suspension>
#3      _ServerSetupScreen._onInstallPressed (package:passy/screens/server_setup_screen.dart:57)
<asynchronous suspension>

App version

v1.8.0 - Entry Tags

Submission checklist

GleammerRay commented 6 months ago

Hello @turtaf !

It appears as though you don't have zenity installed on your system. Passy uses zenity for its file picker functionality on Linux systems as it is one of the most common Linux programs with file picker functionality.

To resolve this issue, please install zenity. If you are unsure about how to do that, tell me which Linux system you are currently using so that I can assist you in installing zenity on your system. Cheers!

turtaf commented 6 months ago

Hi @GleammerRay!!

So, I dug a little deeper in the mater and, my bad, I didn't understand how it was behaving. I thought it wasn't working on flatpak, due to it was opening a dialog and I thought it was asking to indicate where the installer was, while it was asking to pick a folder... So first correction, it does work on flatpak, as it probably finds zenity in the sandbox, while I don't have it installed on my machine and that's probably the reason for it not working on Appimage.

Then I have another issue, on the following step, but I'll open a new one, as it is a different problem.

Thanks a lot for your kind help.