Jump to content

Dashlane


BenjaminO

Recommended Posts

Thank you, but due to external factors we (us and you) cannot control, this doesn’t look like it can go in the Gallery. The nature of the workflow makes it particularly sensitive, and there are a few problem flags:

  • The required installation requires downloading an external binary, which is a no-go.
    • The automated step runs an external script from your repo, which while done outside the workflow is the sort of thing the point above aims to avoid. Tangentially, note the script is non-working as it hardcodes your user directory.
    • The manual step is going to be too complicated for many users, who won’t know the right thing to download or what <workflow folder> means.
  • But the biggest blockers are with the Dashlane CLI itself:
    • It is unsigned, meaning it won’t run on user’s machines without further modification, complicating even more the manual steps. But more importantly, being unsigned removes security guarantees so it’s also a no-go.
    • It is Intel-only, so won’t work on Apple Silicon without forcing an installation of Rosetta.
    • Dashlane themselves don’t seem to take care of the CLI. They mention it’s experimental, discard every responsibility, and kind of dump it on the community. For a tool that interacts with sensitive user data, that matters.

Several of the above could likely be mitigated if the tool shipped in Homebrew’s default tap. At the moment that’s not possible because it does not pass the threshold for popularity. A better alternative would be for Dashlane to support the CLI officially, which at the moment they specifically do not do. If the situation changes, we can reconsider and I’ll gladly take another look.


That is in no way a reflection on your work! No doubt this workflow will be useful to others who use Dashlane, but for the Gallery we strive to provide a few assurances which the current state of the Dashlane CLI makes it impossible to adhere to.


Regarding the things you can fix for your users, pointed out above, do ask if anything was unclear. While the workflow can’t go in the Gallery now, we can still make it the best it can be!

Link to comment
Share on other sites

Hello @vitor and thank you for the feedback. I totally understand your position and I can only agree with you.

However, regarding the two points below:

27 minutes ago, vitor said:

The required installation requires downloading an external binary, which is a no-go.

  • The automated step runs an external script from your repo, which while done outside the workflow is the sort of thing the point above aims to avoid. Tangentially, note the script is non-working as it hardcodes your user directory.
  • The manual step is going to be too complicated for many users, who won’t know the right thing to download or what <workflow folder> means.

I think I can't change this as there is no Homebrew Formulae for now. I do not wish to ship the binary inside the workflow because it's super heavy (74MB). I only see two "kind of easy steps":

- To install the binary which are using a script to automate the process

- Manually install the binary and move it to the workflow directory.

Do not hesitate to tell me if you see a better way to achieve this !

 

41 minutes ago, vitor said:

Tangentially, note the script is non-working as it hardcodes your user directory.

I am not very clear about this. Did the `curl -sSL https://raw.githubusercontent.com/BenjaminOddou/alfred-dashlane/main/install.sh | bash` failed to work properly ? Or is it something else ?

 

Thank you again for the feedback. Do not hesitate to come back to me if you see anything that could be improved (pull request ?).😃

Link to comment
Share on other sites

Yes, currently there are no better options regarding the binary installation. Bundling it with the workflow wouldn’t be a solution either as it would not subside the points regarding their CLI.


Regarding your script, look inside it. You’ve hardcoded your own paths (/Users/benjaminoddou) which won’t work for others. Also, it assumes Alfred Preferences are not being synced (the path will be different), and because it’s saving into the workflow’s folder it will be deleted on updates. Instead consider saving to the workflow’s data directory (see alfred_workflow_data).

Link to comment
Share on other sites

1 hour ago, BenjaminO said:

everything from the data folder (favicons downloaded by the user).

 

Those are a good use case for the cache folder instead of the data folder, because (presumably) having those deleted by macOS if a user is low on disk space won’t be disruptive.

Link to comment
Share on other sites

I’d say so, yes. It won’t make a huge difference but it may help to think of the cache as having data which a user wouldn’t mind having nuked because it’s easily rebuilt and the data dir as having what’s supposed to be more “permanent”.

Link to comment
Share on other sites

  • 1 month later...

Hello @vitor, with the release v1.1.0, I updated the installation script to use homebrew formula installation with a ruby script (it's not perfect but I think it's better than downloading binary directly) ->https://github.com/BenjaminOddou/alfred-dashlane/blob/main/src/dashlane-cli.rb

This script is embed with the workflow and is used to install the dashlane cli binary based on the user system (it should work on arm64). The dashlane cli project is still "experimental" but it's updated regularly.

Do you have some insight for me to know what could be improved in order for this workflow to be accepted in the gallery ? Many thanks in advance

Link to comment
Share on other sites

54 minutes ago, BenjaminO said:

to use homebrew formula installation with a ruby script

 

Unfortunately, it has to be a formula from the official main Homebrew tap (i.e. homebrew-core). The Dashlane’s CLI’s repo is near the acceptance threshold, so it may be accepted if you submit it.

 

1 hour ago, BenjaminO said:

This script is embed with the workflow and is used to install the dashlane cli binary

 

That would be a no-go because it’s still downloading a binary:

 

Quote

Bundling libraries is fine (following the signing prerequisite), but they must be included from the start. The workflow must not download extra software by itself, such as (but not limited to) running a pip install or brew install or curling a binary.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...