火狐
Question
操作系统:Omarchy
图形会话类型: wayland
窗口管理器 WM: Hyprland
显示管理器 DM: KDE Plasma → sddm
super+shift+c 提示错误信息:
App failure
Error Path "--app=https:/app.hey.com/calendar/weeks" does not exist!
Answer
实际原因可能是因为我之前把chromium删掉了。为了让浏览器的默认快捷键指向我喜欢的火狐。
但弹出的错误提示首次出现是在我解绑了"SUPER SHIFT + C → Calendar"这个快捷键。
Solution
首先,尝试了四种方法:
~ ✗ grep -rIl "hey.com" ~/.config ~/.local/share/applications ~/.local/share 2>/dev/null
/home/lukelin/.config/chromium/Crowd Deny/2026.10.1.64/Preload Data
/home/lukelin/.local/share/uv/python/cpython-3.11.17-linux-x86_64-gnu/lib/python3.11/asyncio/tasks.py
/home/lukelin/.local/share/uv/python/cpython-3.11.17-linux-x86_64-gnu/lib/python3.11/concurrent/futures/_base.py
/home/lukelin/.local/share/uv/python/cpython-3.11.17-linux-x86_64-gnu/lib/python3.11/idlelib/run.py
/home/lukelin/.local/share/uv/python/cpython-3.11.17-linux-x86_64-gnu/lib/python3.11/pydoc_data/topics.py
/home/lukelin/.local/share/uv/python/cpython-3.11.17-linux-x86_64-gnu/lib/python3.11/site-packages/setuptools/_static.py
~ ❯ grep -rIl "\-\-app=" ~/.config/hypr ~/.local/share/applications 2>/dev/null
~ ✗ cat ~/.config/hypr/autostart.lua
-- Extra autostart processes.
-- o.launch_on_start("my-service")
~ ❯ ls ~/.local/share/applications/ | grep -iE "calendar|hey|webapp"
.rw-r--r-- 165 lukelin 4 Oct 20:46 HEY.desktop
其中第四种获得有效结果,而所有.desktop的位置在~/.local/share/applications/:
~ ❯ cat ~/.local/share/applications/HEY.desktop
[Desktop Entry]
Version=1.0
Name=HEY
Exec=omarchy-webapp-handler-hey %u
Terminal=false
Type=Application
Icon=hey
StartupNotify=true
MimeType=x-scheme-handler/mailto
找快捷方式的实际可执行文件:
~ ❯ which omarchy-webapp-handler-hey
/usr/share/omarchy/bin/omarchy-webapp-handler-hey
~ ❯ cat "$(which omarchy-webapp-handler-hey)"
#!/bin/bash
# omarchy:summary=Open HEY webmail and translate mailto links
# omarchy:args=[url]
url="$1"
web_url="https://app.hey.com"
# Handle mailto: URLs
if [[ $url =~ ^mailto: ]]; then
email=$(echo "$url" | sed 's/mailto://')
web_url="https://app.hey.com/messages/new?to=$email"
fi
exec omarchy-launch-webapp "$web_url"
~ ❯ cat /usr/share/omarchy/bin/omarchy-launch-webapp
#!/bin/bash
# omarchy:summary=Launch a URL as a web app in the default supported browser
# omarchy:args=<url>
browser=$(xdg-settings get default-web-browser)
case $browser in
google-chrome* | brave* | microsoft-edge* | opera* | vivaldi* | helium*) ;;
*) browser="chrome.desktop" ;;
esac
exec setsid uwsm-app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$1" "${@:2}"
问题就在这里,原来没有firefox,修改了下面2行,把firefox加了进去。
google-chrome* | brave* | microsoft-edge* | opera* | firefox* | vivaldi* | helium*) ;;
*) browser="firefox.desktop" ;;

浙公网安备 33010602011771号