mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
9 lines
307 B
Bash
9 lines
307 B
Bash
|
#!/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
|