wakatime / jetbrains-wakatime

IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, Goland, Rider, & WebStorm plugin for quantifying your coding.
https://wakatime.com/intellij-idea
BSD 3-Clause "New" or "Revised" License
1.13k stars 167 forks source link

Requests access to kde wallet to update status bar, in the mean time hanging the IDE #175

Open Moire9 opened 3 years ago

Moire9 commented 3 years ago

Occasionally, when switching away from the IDE window, wakatime will "Update the status bar" (whatever that means), which causes KDE to open a window asking for the password to the wallet. This is annoying, however even worse, the IDE is completely frozen while the window is open.

alanhamlett commented 3 years ago

Maybe we can detect when running in KDE and disable the status bar icon. For now, does it stop when you uncheck Show WakaTime in status bar in the Tools -> WakaTime Settings menu?

Moire9 commented 3 years ago

I believe doing that stops the issue.

Moire9 commented 3 years ago

No, it does not stop it.

alanhamlett commented 3 years ago

Does it say Update the status bar or Updating wakatime status bar?

Moire9 commented 3 years ago

I am almost certain it is the second, however I will try to remember to check next I see it.

alanhamlett commented 3 years ago

The way we "disable" the WakaTime status bar icon is having getTodayText return empty string: https://github.com/wakatime/jetbrains-wakatime/blob/1fbc1b8fa4b2b509b308c659a743f726c2a83ab0/src/com/wakatime/intellij/plugin/CustomStatusBar.java#L103

Instead, we can try returning false for one or both of these methods which might prevent the prompt: https://github.com/wakatime/jetbrains-wakatime/blob/1fbc1b8fa4b2b509b308c659a743f726c2a83ab0/src/com/wakatime/intellij/plugin/CustomStatusBar.java#L55 https://github.com/wakatime/jetbrains-wakatime/blob/1fbc1b8fa4b2b509b308c659a743f726c2a83ab0/src/com/wakatime/intellij/plugin/CustomStatusBar.java#L42

I think the reason we didn't already do that was when testing, the icon couldn't be enabled once isAvailable or canBeEnabledOn started returning false. I'll double check and make sure.

Moire9 commented 3 years ago

I don't know this is of use to you, but after having disabled the discussed configuration option, it no longer shows anything near the bottom when it hangs.