vanBassum / Wakatime.Unity

A Wakatime plugin for Unity
MIT License
41 stars 7 forks source link

Every heartbeat opens a cmd window for a brief moment on Windows #5

Closed mai-soup closed 2 years ago

mai-soup commented 2 years ago

Can't see what exactly it's doing as it only flashes for a split second, but it's quite annoying, especially when several heartbeats are done in succession.

vanBassum commented 2 years ago

Wow, I see, this is a very annoying behavior. However, I don't have the slightest idea what might cause this. I'll have to do some digging. Ah, found the source, it's using GIT in order to get the branch name. I always have had an aversion to using "Process.Start" stuff.

Update: I did tone down the amount of heartbeats that are being created, that should decrease this issue somewhat. Not a complete fix yet though.

Update: I've hidden the cmd window when fetching the branch information with GIT. This should solve this issue completely.

buger404 commented 1 year ago

The issue appears again on Windows 11, plugin version 0.1.0. Every heartbeat opens a 'Windows Terminal' window for a brief moment.