diff --git a/lastpass-cli-alfred-workflow.alfredworkflow b/LastPass-Search.alfredworkflow similarity index 59% rename from lastpass-cli-alfred-workflow.alfredworkflow rename to LastPass-Search.alfredworkflow index 01c999b..36a884e 100644 Binary files a/lastpass-cli-alfred-workflow.alfredworkflow and b/LastPass-Search.alfredworkflow differ diff --git a/README.md b/README.md index 2bf8edc..cf01b97 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Simple Lastpass Workflow for Alfred +# Lastpass Search Workflow for Alfred Simple yet powerful integration with the Lastpass CLI so you can now get your passwords out of your Lastpass vault and straight into the clipboard from within Alfred. @@ -7,12 +7,12 @@ Requires Alfred 3 or 4 and LastPass CLI v1.3 or higher ## Installation -1. Ensure you have Alfred installed with the Alfred Powerpack License +1. Ensure you have Alfred 3 or 4 installed with the Alfred Powerpack License 2. Install LastPass command line interface 1. using MacPorts: 'sudo port install lastpass-cli lastpass-cli-doc' 2. using HomeBrew: 'brew install lastpass-cli' 3. manually, see https://github.com/LastPass/lastpass-cli for details -3. Download and open https://github.com/lhaeger/lastpass-alfred-workflow/blob/master/lastpass-cli-alfred-workflow.alfredworkflow +3. Download and open https://github.com/lhaeger/lastpass-alfred-workflow/raw/master/LastPass-Search.alfredworkflow 4. Run 'lpsetemail yourloginemail@yourdomain.com' in Alfred to set your LastPass username. ## Usage @@ -36,6 +36,7 @@ Requires Alfred 3 or 4 and LastPass CLI v1.3 or higher * Version 1.4.9 1. Fixed a filesystem access issue, probably introduced with security inprovements in macOS 10.15.6 (?), causing LastPass login to fail. + 2. Updated install instructions in Readme. * Version 1.4.8 1. If no folder/category is set for an entry in LastPass the CLI returns the literal text "(none)", which is then displayed in Alfred. Removed it (as well as translations in other languages). * Version 1.4.7 @@ -84,10 +85,9 @@ Requires Alfred 3 or 4 and LastPass CLI v1.3 or higher ## Credits -Created by [Stuart Ryan](http://stuartryan.com). If you would like to get into contact you can do so via: -* [@StuartCRyan on Twitter](http://twitter.com/stuartcryan) -* [Stuart Ryan on LinkedIn](https://au.linkedin.com/in/stuartcryan) -* [Technical Notebook Blog](http://technicalnotebook.com) +Created by [Stuart Ryan](http://stuartryan.com) (<= v1.4.7) + +Updated by [Lothar Haeger](https://github.com/lhaeger) (>= v1.4.8) ## License diff --git a/workflow/info.plist b/workflow/info.plist index 3e63383..cd96d19 100644 --- a/workflow/info.plist +++ b/workflow/info.plist @@ -3,9 +3,9 @@ bundleid - com.stuartryan.alfred.lastpass + com.brummelhook.alfred.lastpass category - Tools + Productivity connections 01DFFE0F-13AB-4E19-AC39-8E2177548224 @@ -237,13 +237,13 @@ createdby - Stuart Ryan + Lothar Haeger description - + Search LastPass for usernames, sites and passwords disabled name - LastPass CLI + LastPass Search objects @@ -284,12 +284,6 @@ set current_unix_path to POSIX path of current_path set osascript to (system attribute "alfred_preferences") & "/workflows/" & (system attribute "alfred_workflow_uid") & "/passwordInput.osascript" -try - do shell script "mkdir \"" & (system attribute "alfred_workflow_data") & "\"" -end try - -do shell script "echo \"" & osascript & "\" > \"" & (system attribute "alfred_workflow_data") & "/running_location.txt\"" - do shell script "export LPASS_ASKPASS=\"" & osascript & "\"" do shell script "launchctl setenv LPASS_ASKPASS \"" & osascript & "\"" @@ -314,7 +308,7 @@ end if do shell script "/bin/bash -c '" & "export TERM=\"xterm-256color\" && export LPASS_ASKPASS=\"" & osascript & "\" && export LPASS_AGENT_TIMEOUT=" & login_timeout & " && " & lpass_binary & " login --trust \"" & login_email & "\" && clear && " & lpass_binary & " ls --sync=now > /dev/null 2>&1 && exit 0'" if ("{query}" = "scriptlocationnotset") then -tell application "Alfred 3" to search "lp " +tell application id "com.runningwithcrayons.Alfred" to search "lp " end if scriptargtype 0 @@ -395,7 +389,7 @@ end if uid 815177FB-CED1-42F3-AC5B-C1AC60735FA1 version - 2 + 3 config @@ -473,6 +467,8 @@ print $results; alfredfiltersresultsmatchmode 0 + argumenttreatemptyqueryasnil + argumenttrimmode 0 argumenttype @@ -622,7 +618,7 @@ exit 0; uid 29656ADA-02CB-48FC-BC0E-20376CF8D8EF version - 2 + 3 config @@ -740,7 +736,7 @@ print $results; uid 201D2F2C-024E-4FA6-8B0C-CF32974E5077 version - 2 + 3 config @@ -1025,12 +1021,11 @@ echo "{query}" readme - See installation instructions at https://github.com/stuartcryan/lastpass-alfred-workflow -For support please log a ticket on https://github.com/stuartcryan/lastpass-alfred-workflow + This is an updated and rebranded version of the LastPass CLI workflow initially created by Stuart C. Ryan and published under GPL-2. -NOTE: This Alfred Workflow is not affiliated in any way with LastPass. The LastPass trademark and logo are owned by LastPass.com. The LastPass logo and product name have been used with permission of the LastPass team. +Since the original piece has some bugs that prevent using it on macOS Catalina and since 2016 pull requests are ignored, I assume hthe code has been abandoned and submit my updated fork as an alternative to move forward. -My thanks go out to LastPass for their awesome product and the new CLI! +See installation instructions at https://github.com/lhaeger/lastpass-alfred-workflow uidata 01DFFE0F-13AB-4E19-AC39-8E2177548224 @@ -1188,9 +1183,11 @@ My thanks go out to LastPass for their awesome product and the new CLI! 620 + variablesdontexport + version - 1.4.8 + 1.4.9 webaddress - http://technicalnotebook.com + https://github.com/lhaeger/lastpass-alfred-workflow