wakatime / wakatime-mode

Emacs plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/emacs
267 stars 41 forks source link

wakatime-save fails when opening buffer via org-protocol #46

Open coldacid opened 3 years ago

coldacid commented 3 years ago

Steps to reproduce

  1. Configure org and org-protocol
  2. Launch org-protocol://capture:/L/https%3A%2F%2Fexample.com/Example%20website
  3. Emacs opens a buffer for org-protocol, but...
  4. Get error message: Error in auto-save-hook (wakatime-save): (file-error "Setting current directory" "No error" "c:/WINDOWS/system32/org-protocol:/capture/")
coldacid commented 3 years ago

Sorry, URI in step 2 is incorrect, it's the old-style and works with Wakatime.el. It's the new-style links that fail (i.e. org-protocol://capture?template=L&url=https%3A%2F%2Fexample.com&title=Example%20website in this example).