Skip to content

Instantly share code, notes, and snippets.

@devonhk
Created August 27, 2024 17:10
Show Gist options
  • Select an option

  • Save devonhk/3c2c411410b421a90955f2fafbe3ab00 to your computer and use it in GitHub Desktop.

Select an option

Save devonhk/3c2c411410b421a90955f2fafbe3ab00 to your computer and use it in GitHub Desktop.
xdg-open coverage.html opening obsidian instead of a browser

Installing obsidian on my linux distro updated my ~/.config/mimeapps.list with text/html=obsidian.desktop.

This caused go tool cover -html=coverage.out -o coverage.html to attempt (and fail) to open coverage files in obsidian instead of a browser. The fix was was simple. I just needed to fix the mime association with: xdg-mime default google-chrome.desktop text/html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment