Skip to content

Commit

Permalink
Update for improved Alfred 3 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
isometry committed Jun 2, 2016
1 parent 6b0eb47 commit 4df5021
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A workflow for [Alfred](http://www.alfredapp.com/) to rapidly open a Secure SHel

## Requirements

- [Alfred](http://www.alfredapp.com/) (version 2.0+)
- [Alfred](http://www.alfredapp.com/) (version 2.4+)
- The [Alfred Powerpack](http://www.alfredapp.com/powerpack/).
- [ssh.alfredworkflow](https://raw.github.com/isometry/alfredworkflows/master/ssh.alfredworkflow)
- (optional) [pybonjour](https://pypi.python.org/pypi/pybonjour)
Expand Down
6 changes: 3 additions & 3 deletions alfred.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def unescape(query, characters=None):

def work(volatile):
path = {
True: '~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data',
False: '~/Library/Application Support/Alfred 2/Workflow Data'
True: os.getenv('alfred_workflow_cache'),
False: os.getenv('alfred_workflow_data')
}[bool(volatile)]
return _create(os.path.join(os.path.expanduser(path), bundleid))
return _create(os.path.expanduser(path))

def write(text):
sys.stdout.write(text)
Expand Down

0 comments on commit 4df5021

Please sign in to comment.