Question:
How do I reset my JetBrains products to trial version?
Disclaimer
I note that this question and the answer to it were created solely for educational purposes and do not carry any call to action.
Any paid software must be bought
Discussion on the issue of the appropriateness of the Mete
Answer:
It is easy to see, by iterating over the files related to JetBrains, that the validation of the trial version is tied to several files:
-
~/.config/JetBrains/GoLand2020.2/eval
-
~/.config/JetBrains/GoLand2020.2/options/usage.statistics.xml
-
~/.config/JetBrains/GoLand2020.2/options/other.xml
-
~/.config/JetBrains/$tool*/options/recentProjects.xml
-
~/.config/JetBrains/$tool*/options/updates.xml
-
~/.config/JetBrains/$tool*/options/usage.statistics.xml
-
~/.java/.userPrefs/jetbrains
-
~/.java/.userPrefs/prefs.xml
-
~/.java/.userPrefs/.user.lock.user
-
~/.java/.userPrefs/.userRootModFile.user
Then you can make a script like this:
#!/bin/bash
# https://gist.github.com/Hedgehogues/123eb27100608d248cf8370e666b29ce/
# declare array of tools
declare -a tools=(
"DataGrip"
"CLion"
"Rider"
"WebStorm"
"GoLand"
"PyCharm"
)
for tool in "${tools[@]}"
do
rm -rf ~/.config/JetBrains/$tool*/eval
rm -rf ~/.config/JetBrains/$tool*/options/usage.statistics.xml
rm -rf ~/.config/JetBrains/$tool*/options/other.xml
rm -rf ~/.config/JetBrains/$tool*/options/recentProjects.xml
rm -rf ~/.config/JetBrains/$tool*/options/updates.xml
rm -rf ~/.config/JetBrains/$tool*/options/usage.statistics.xml
rm -rf ~/.java/.userPrefs/jetbrains
rm -rf ~/.java/.userPrefs/prefs.xml
rm -rf ~/.java/.userPrefs/.user.lock.user
rm -rf ~/.java/.userPrefs/.userRootModFile.user
done
Then add it to PATH
. To make it available from the console every time you boot, you can add the following line to your .bashrc
:
export PATH=$PATH:~/path/to/script
In order not to reboot, you should do this:
source ~/.bashrc
This answer has been posted for informational purposes only.