Skip to content

Commit

Permalink
Cleanup after rebranding
Browse files Browse the repository at this point in the history
  • Loading branch information
lhaeger committed Aug 2, 2020
1 parent 5ec1b2e commit b6f1df0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 28 deletions.
Binary file not shown.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down
39 changes: 18 additions & 21 deletions workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>bundleid</key>
<string>com.stuartryan.alfred.lastpass</string>
<string>com.brummelhook.alfred.lastpass</string>
<key>category</key>
<string>Tools</string>
<string>Productivity</string>
<key>connections</key>
<dict>
<key>01DFFE0F-13AB-4E19-AC39-8E2177548224</key>
Expand Down Expand Up @@ -237,13 +237,13 @@
</array>
</dict>
<key>createdby</key>
<string>Stuart Ryan</string>
<string>Lothar Haeger</string>
<key>description</key>
<string></string>
<string>Search LastPass for usernames, sites and passwords</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>LastPass CLI</string>
<string>LastPass Search</string>
<key>objects</key>
<array>
<dict>
Expand Down Expand Up @@ -284,12 +284,6 @@ set current_unix_path to POSIX path of current_path
set osascript to (system attribute "alfred_preferences") &amp; "/workflows/" &amp; (system attribute "alfred_workflow_uid") &amp; "/passwordInput.osascript"
try
do shell script "mkdir \"" &amp; (system attribute "alfred_workflow_data") &amp; "\""
end try
do shell script "echo \"" &amp; osascript &amp; "\" &gt; \"" &amp; (system attribute "alfred_workflow_data") &amp; "/running_location.txt\""
do shell script "export LPASS_ASKPASS=\"" &amp; osascript &amp; "\""
do shell script "launchctl setenv LPASS_ASKPASS \"" &amp; osascript &amp; "\""
Expand All @@ -314,7 +308,7 @@ end if
do shell script "/bin/bash -c '" &amp; "export TERM=\"xterm-256color\" &amp;&amp; export LPASS_ASKPASS=\"" &amp; osascript &amp; "\" &amp;&amp; export LPASS_AGENT_TIMEOUT=" &amp; login_timeout &amp; " &amp;&amp; " &amp; lpass_binary &amp; " login --trust \"" &amp; login_email &amp; "\" &amp;&amp; clear &amp;&amp; " &amp; lpass_binary &amp; " ls --sync=now &gt; /dev/null 2&gt;&amp;1 &amp;&amp; exit 0'"
if ("{query}" = "scriptlocationnotset") then
tell application "Alfred 3" to search "lp "
tell application id "com.runningwithcrayons.Alfred" to search "lp "
end if</string>
<key>scriptargtype</key>
<integer>0</integer>
Expand Down Expand Up @@ -395,7 +389,7 @@ end if</string>
<key>uid</key>
<string>815177FB-CED1-42F3-AC5B-C1AC60735FA1</string>
<key>version</key>
<integer>2</integer>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
Expand Down Expand Up @@ -473,6 +467,8 @@ print $results;
<false/>
<key>alfredfiltersresultsmatchmode</key>
<integer>0</integer>
<key>argumenttreatemptyqueryasnil</key>
<false/>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
Expand Down Expand Up @@ -622,7 +618,7 @@ exit 0;</string>
<key>uid</key>
<string>29656ADA-02CB-48FC-BC0E-20376CF8D8EF</string>
<key>version</key>
<integer>2</integer>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
Expand Down Expand Up @@ -740,7 +736,7 @@ print $results;
<key>uid</key>
<string>201D2F2C-024E-4FA6-8B0C-CF32974E5077</string>
<key>version</key>
<integer>2</integer>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
Expand Down Expand Up @@ -1025,12 +1021,11 @@ echo "{query}"</string>
</dict>
</array>
<key>readme</key>
<string>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
<string>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!</string>
See installation instructions at https://github.com/lhaeger/lastpass-alfred-workflow</string>
<key>uidata</key>
<dict>
<key>01DFFE0F-13AB-4E19-AC39-8E2177548224</key>
Expand Down Expand Up @@ -1188,9 +1183,11 @@ My thanks go out to LastPass for their awesome product and the new CLI!</string>
<integer>620</integer>
</dict>
</dict>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.4.8</string>
<string>1.4.9</string>
<key>webaddress</key>
<string>http://technicalnotebook.com</string>
<string>https://github.com/lhaeger/lastpass-alfred-workflow</string>
</dict>
</plist>

0 comments on commit b6f1df0

Please sign in to comment.