In some cases, only these lines will work
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
rm -rf ~/.config/$product*/eval 2> /dev/null
rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done
But if not, try these
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
echo "[+] Resetting trial period for $product"
echo "[+] Removing Evaluation Key..."
rm -rf ~/.config/$product*/eval 2> /dev/null
# Above path not working on latest version, Fixed below
rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
echo "[+] Removing all evlsprt properties in options.xml..."
sed -i 's/evlsprt//' ~/.config/$product*/options/other.xml 2> /dev/null
# Above path not working on latest version, Fixed below
sed -i 's/evlsprt//' ~/.config/JetBrains/$product*/options/other.xml 2> /dev/null
echo
done
echo "Removing userPrefs files..."
rm -rf ~/.java/.userPrefs 2> /dev/null
If not works on Mac OS, then run the following code:
rm -rf ~/Library/Preferences/com.apple.java.util.prefs.plist
that won't work on newer versions of jetbrains products, it still says your trial has ended, because it sends your UID to their servers to check if you already used the trial.
you have to change your user id to get it to work.
there is no need to delete any configs.
deleting the
~/.java/.userPrefs
directory is not recommended, it might reset your licenses for other java apps if there are any.~/.java/.userPrefs/jetbrains/prefs.xml
user_id_on_machine
entry (e.g. i changed the last character and it worked)start trial
buttonyou can also delete the
~/.java/.userPrefs/jetbrains
folder and changeJetBrains.UserIdOnMachine
in~/.java/.userPrefs/prefs.xml
if the above method didn't work for you.