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.14k stars 167 forks source link

Add $WAKATIME_BIN environment variable #188

Closed olistrik closed 2 years ago

olistrik commented 3 years ago

On Nixos the auto downloaded wakatime-cli cannot run because Nixos does not store shared libraries in a typical unix location. I also cannot set $WAKATIME_HOME to a nix managed location with a patched binary because those are read only, so I'd have to manage the API key in my nix config which is public.

I've added a $WAKATIME_BIN environment variable which if set will be used instead of downloading or updating the plugin managed binary.

This might not be the best way of doing this, it's just how I decided to fix my own issue. Just thought others might also benefit from a variable like this.

olistrik commented 2 years ago

Let's call it $WAKATIME_CLI_LOCATION? Sure! I've renamed it.

gandarez commented 2 years ago

If approved would be good if it get squashed to avoid meaningless commits.