diff --git a/README.md b/README.md index 032779f..cefd65b 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/alfred.py b/alfred.py index 65fe510..6e71f13 100644 --- a/alfred.py +++ b/alfred.py @@ -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)