office-wakatime
office-wakatime copied to clipboard
Fixes problem with OneDrive
Changes fix problem with files on OneDrive. Code based on: https://social.msdn.microsoft.com/Forums/en-US/1331519b-1dd1-4aa0-8f4f-0453e1647f57/how-to-get-physical-path-instead-of-url-onedrive tries to convert URL to local path
User must be logged into OneDrive on computer, otherwise there will not be local “copy” with metadata. After logging out from OneDrive older files should still work.
I think that this fixes: wakatime/office-wakatime#14 wakatime/wakatime-cli#489 wakatime/wakatime-cli#653
Probably change could be made in wakatime/wakatime-cli, to fix this problem with all apps, but all current issues are connected to office plugin.
Actually, let's hold off on this PR until the office plugins use the new wakatime-cli because this might not be necessary afterwards.