1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00
dotfiles/run_onchange_org-protocol-setup.sh

9 lines
307 B
Bash
Raw Permalink Normal View History

2022-10-09 15:30:41 +00:00
#!/bin/sh
# Refresh xgd
if test "$(grep -c 'x-scheme-handler/org-protocol=org-protocol.desktop' ~/.config/mimeapps.list)" -eq 0; then
echo "Refreshing xgd to handle org-protocol"
update-desktop-database ~/.local/share/applications/
xdg-mime default org-protocol.desktop x-scheme-handler/org-protocol
fi