Skip to content

Instantly share code, notes, and snippets.

@m5lil
Last active April 20, 2025 20:06
Show Gist options
  • Save m5lil/32c2817e7597c881a772bd17b3c46a5e to your computer and use it in GitHub Desktop.
Save m5lil/32c2817e7597c881a772bd17b3c46a5e to your computer and use it in GitHub Desktop.
[reset jetbrains application trial] reset jetbrains ide evals v1.0.4 #others
#!/bin/bash
# reset jetbrains ide evals v1.0.4
OS_NAME=$(uname -s)
JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"
if [ "$OS_NAME" == "Darwin" ]; then
echo 'macOS:'
for PRD in $JB_PRODUCTS; do
rm -rf ~/Library/Preferences/"${PRD}"*/eval
sed -i '' '/name="evlsprt.*"/d' ~/Library/Preferences/"${PRD}"*/options/other.xml >/dev/null 2>&1
rm -rf ~/Library/Application\ Support/JetBrains/"${PRD}"*/eval
sed -i '' '/name="evlsprt.*"/d' ~/Library/Application\ Support/JetBrains/"${PRD}"*/options/other.xml >/dev/null 2>&1
done
plutil -remove "/.JetBrains\.UserIdOnMachine" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
plutil -remove "/.jetbrains/.user_id_on_machine" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
plutil -remove "/.jetbrains/.device_id" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
elif [ "$OS_NAME" == "Linux" ]; then
echo 'Linux:'
for PRD in $JB_PRODUCTS; do
rm -rf ~/."${PRD}"*/config/eval
sed -i '/name="evlsprt.*"/d' ~/."${PRD}"*/config/options/other.xml >/dev/null 2>&1
rm -rf ~/.config/JetBrains/"${PRD}"*/eval
sed -i '/name="evlsprt.*"/d' ~/.config/JetBrains/"${PRD}"*/options/other.xml >/dev/null 2>&1
done
sed -i '/key="JetBrains\.UserIdOnMachine"/d' ~/.java/.userPrefs/prefs.xml
sed -i '/key="device_id"/d' ~/.java/.userPrefs/jetbrains/prefs.xml
sed -i '/key="user_id_on_machine"/d' ~/.java/.userPrefs/jetbrains/prefs.xml
else
echo 'unsupport'
exit
fi
echo 'done.'
@Saurav-Paul
Copy link

Does it still work? How to use it ?

@dzmitrys-dev
Copy link

Add RustRover please

@abrahamfast
Copy link

Doesn't work PyCharm PyCharm 2023.3.3 (Professional Edition)

macOS 14.4 Beta (23E5205c)

@abrahamfast
Copy link

jetbrans IDE logout then work

@ClementGib
Copy link

Nice thanks

@DushaSmile
Copy link

Thanks

@NeftaliAcosta
Copy link

Thanks.

@dzmitrys-dev
Copy link

dzmitrys-dev commented Apr 25, 2024

#!/bin/bash
# reset jetbrains ide evals v1.0.4

OS_NAME=$(uname -s)
JB_PRODUCTS="IntelliJIdea CLion RustRover PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"

if [ "$OS_NAME" == "Darwin" ]; then
  echo 'macOS:'

  for PRD in $JB_PRODUCTS; do
    rm -rf ~/Library/Preferences/"${PRD}"*/eval
    sed -i '' '/name="evlsprt.*"/d' ~/Library/Preferences/"${PRD}"*/options/other.xml >/dev/null 2>&1
    rm -rf ~/Library/Application\ Support/JetBrains/"${PRD}"*/eval
    sed -i '' '/name="evlsprt.*"/d' ~/Library/Application\ Support/JetBrains/"${PRD}"*/options/other.xml >/dev/null 2>&1
  done

  plutil -remove "/.JetBrains\.UserIdOnMachine" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
  plutil -remove "/.jetbrains/.user_id_on_machine" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
  plutil -remove "/.jetbrains/.device_id" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
elif [ "$OS_NAME" == "Linux" ]; then
  echo 'Linux:'

  for PRD in $JB_PRODUCTS; do
    rm -rf ~/."${PRD}"*/config/eval
    sed -i '/name="evlsprt.*"/d' ~/."${PRD}"*/config/options/other.xml >/dev/null 2>&1
    rm -rf ~/.config/JetBrains/"${PRD}"*/eval
    sed -i '/name="evlsprt.*"/d' ~/.config/JetBrains/"${PRD}"*/options/other.xml >/dev/null 2>&1
  done

  sed -i '/key="JetBrains\.UserIdOnMachine"/d' ~/.java/.userPrefs/prefs.xml
  sed -i '/key="device_id"/d' ~/.java/.userPrefs/jetbrains/prefs.xml
  sed -i '/key="user_id_on_machine"/d' ~/.java/.userPrefs/jetbrains/prefs.xml
else
  echo 'unsupport'
  exit
fi

echo 'done.'

@dzmitrys-dev
Copy link

added RustRover

@ivalkenburg
Copy link

Doesn't work anymore :(

@ccroft-arn
Copy link

It does work on mine either, Rider still showing same expiry date for trial

@jmediatechnology
Copy link

It works on Mac OS.

@ccroft-arn
Copy link

It works on Mac OS.

I am on a Mac, I have run multiple but it hasn’t reset my rider trial.

@swatchion
Copy link

same here, for phpstorm 2024.1 EAP

@maksudnishanov
Copy link

maksudnishanov commented May 30, 2024

I'm on Mac (Sonoma 14.5) , this tool is not working for me, no Jetbrains applications in ~/Library/Preferences ( I'm using IntellijIDE, Rider and PhpStorm 2024.1)

@rcv911
Copy link

rcv911 commented Jul 6, 2024

it works on Mac OS Sonoma 14.3 with GoLand 2024.1.2

@maksudnishanov
Copy link

Hi RCV911, can you assist how it works?

@zahedul
Copy link

zahedul commented Jul 8, 2024

Not working for me.

  • Mac (Sonoma 14.5)
  • WebStorm 2024.1.5

@charan0017
Copy link

Not working for me.

  • Mac (Sonoma 14.5)
  • WebStorm 2024.1.5

Steps to resolve this -

  1. Logout if any account is logged in to the WebStorm and Remove Licence
  2. Close WebStorm completely
  3. Run the reset.sh
  4. Shutdown Mac
  5. Wait for 5mins
  6. Power On Mac
  7. Again Run the reset.sh
  8. Open the WebStorm - It worked for me 🎉

@yakup-m
Copy link

yakup-m commented Aug 31, 2024

Not working for me.

  • Mac (Sonoma 14.5)
  • WebStorm 2024.1.5

Steps to resolve this -

  1. Logout if any account is logged in to the WebStorm and Remove Licence
  2. Close WebStorm completely
  3. Run the reset.sh
  4. Shutdown Mac
  5. Wait for 5mins
  6. Power On Mac
  7. Again Run the reset.sh
  8. Open the WebStorm - It worked for me 🎉

It really worked. Thanx

@zahedul
Copy link

zahedul commented Sep 30, 2024

Not working for me.

  • Mac (Sonoma 14.5)
  • WebStorm 2024.1.5

Steps to resolve this -

  1. Logout if any account is logged in to the WebStorm and Remove Licence
  2. Close WebStorm completely
  3. Run the reset.sh
  4. Shutdown Mac
  5. Wait for 5mins
  6. Power On Mac
  7. Again Run the reset.sh
  8. Open the WebStorm - It worked for me 🎉

worked .. thanks

@Gevorg-crypto
Copy link

killall cfprefsd

its working thank you all

@p-sh07
Copy link

p-sh07 commented Oct 19, 2024

Worked! CLion 2024.1 MacOS beta 15.0
Thank you so much!
P.S. I would have bought the license (for personal use and for learning c++), but I am not allowed to, because based on the location where I live I am judged by some people to not be worthy of purchasing a lot of software products, or games, or many other things. This is so stupid and pointless..
Unfortunately, I have to pirate it now.

@1nds8
Copy link

1nds8 commented Nov 11, 2024

Not working for me.

  • Mac (Sonoma 14.5)
  • WebStorm 2024.1.5

Steps to resolve this -

  1. Logout if any account is logged in to the WebStorm and Remove Licence
  2. Close WebStorm completely
  3. Run the reset.sh
  4. Shutdown Mac
  5. Wait for 5mins
  6. Power On Mac
  7. Again Run the reset.sh
  8. Open the WebStorm - It worked for me 🎉

works for me!

@murashki
Copy link

Works. WebStorm 2024.2, Retina

@ghalibsoomro
Copy link

Not working for me.

  • Mac (Sonoma 14.5)
  • WebStorm 2024.1.5

Steps to resolve this -

  1. Logout if any account is logged in to the WebStorm and Remove Licence
  2. Close WebStorm completely
  3. Run the reset.sh
  4. Shutdown Mac
  5. Wait for 5mins
  6. Power On Mac
  7. Again Run the reset.sh
  8. Open the WebStorm - It worked for me 🎉

Thank you man works 1000% 🎉

@lpe234
Copy link

lpe234 commented Dec 28, 2024

killall cfprefsd

its working thank you all

o( ̄▽ ̄)d

@zose43
Copy link

zose43 commented Jan 3, 2025

it still works for me! os sequoia, goland 2024.3.1

@hamza-younas94
Copy link

Not working for me

@TuAnhTo
Copy link

TuAnhTo commented Feb 4, 2025

thanks you

Không hiệu quả với tôi.

  • Máy Mac (Sonoma 14.5)
  • WebStorm 2024.1.5

Các bước để giải quyết vấn đề này -

  1. Đăng xuất nếu có bất kỳ tài khoản nào được đăng nhập vào WebStorm và Xóa Giấy phép
  2. Đóng WebStorm hoàn toàn
  3. Chạy reset.sh
  4. Tắt máy Mac
  5. Chờ 5 phút
  6. Bật nguồn máy Mac
  7. Chạy lại reset.sh
  8. Mở WebStorm - Nó hiệu quả với tôi 🎉

thanks you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment