Skip to content

Commit 4df5021

Browse files
committed
Update for improved Alfred 3 compatibility.
1 parent 6b0eb47 commit 4df5021

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A workflow for [Alfred](http://www.alfredapp.com/) to rapidly open a Secure SHel
88

99
## Requirements
1010

11-
- [Alfred](http://www.alfredapp.com/) (version 2.0+)
11+
- [Alfred](http://www.alfredapp.com/) (version 2.4+)
1212
- The [Alfred Powerpack](http://www.alfredapp.com/powerpack/).
1313
- [ssh.alfredworkflow](https://raw.github.com/isometry/alfredworkflows/master/ssh.alfredworkflow)
1414
- (optional) [pybonjour](https://pypi.python.org/pypi/pybonjour)

alfred.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def unescape(query, characters=None):
6464

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

7272
def write(text):
7373
sys.stdout.write(text)

0 commit comments

Comments
 (0)