vika.cn

vika.cn

notion-search-alfred5-workflow

notion-search-alfred5-workflow

alfred-terminalfinder

alfred-terminalfinder

alfred-open-with-vscode-workflow

alfred-open-with-vscode-workflow

Menu-Bar-Search

Menu-Bar-Search

可能遇到的问题:

`Assistive applications are not enabled in System Preferences.`

解决:

设置→安全性与隐私→辅助功能→允许 Alfred

image.png

如果还是不行的话,先按住图片里面的减号去掉 Alfred,然后重新添加一次。

alfred-process-killer

alfred-process-killer

alfred-github-workflow

alfred-github-workflow

前置依赖安装:brew install php

碰到命令不起作用的问题,什么都不输出,具体的表现可以看看:Current version breaks in latest php from Homebrew · Issue #138 · gharlan/alfred-github-workflow

然后同样按照开发者的排查方法操作了:

image.png

在本地的 ~/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows 目录下找到这个 workflow 的目录,并修改 curl.hpp 但是我多加了几行用来确定是不是调用的 brew 环境下 php 依赖的 curl,而不是系统的 /usr/bin/curl

具体修改:

$curlVersionInfo = curl_version();
echo "cURL Version Info: \n";
var_dump($curlVersionInfo);
print_r($info); exit;

发现和这个 issue 的提出者的输出是一样的,碰到了 http code = 0 的问题。

然后在 https://stackoverflow.com/questions/10227879/php-curl-http-code-return-0 的第一个回答找到了可能的原因和测试代码,把里面请求的网址改成了这个 workflow 要请求的地址

test.php

运行 php test.php 后输出

Return code is 0 
error setting certificate file: /opt/homebrew/etc/openssl@3/cert.pem

发现 /opt/homebrew/etc/openssl@3/cert.pem 软链接到了一个不存在的文件:

/opt/homebrew/etc/openssl@3/cert.pem -> ../ca-certificates/cert.pem

看起来是和 ca-certificates 的安装有关系,因此尝试 brew install ca-certificates 但是发现已经安装了,最终尝试,解决:

Important

brew reinstall ca-certificates

alfred-gitlab-workflow

alfred-gitlab-workflow

配置:

  1. 在 gitlab 上生成 access token,而后 glsetkey <access_token>
  2. 设置 GitLab API: glseturl <host>/api/v4/projects
    1. 其中 host 替换成相应的域名或者 ip,例如
      1. 官网: glseturl [http://gitlab.com/api/v4/projects](http://gitlab.com/api/v4/projects)
      2. 自建: glseturl [http://192.168.3.224:8081/api/v4/projects](http://192.168.3.224:8081/api/v4/projects)

clashx-alfred

clashx-alfred

alfred-browser-tabs

alfred-browser-tabs

alfred-markdown-table

alfred-markdown-table