diff --git a/Casks/p/pycharm.rb b/Casks/p/pycharm.rb index 7bfc7886578..248859d6e4d 100644 --- a/Casks/p/pycharm.rb +++ b/Casks/p/pycharm.rb @@ -24,15 +24,7 @@ cask "pycharm" do depends_on macos: ">= :high_sierra" app "PyCharm.app" - - uninstall_postflight do - ENV["PATH"].split(File::PATH_SEPARATOR).map { |path| File.join(path, "charm") }.each do |path| - if File.readable?(path) && - File.readlines(path).grep(/# see com.intellij.idea.SocketLock for the server side of this interface/).any? - File.delete(path) - end - end - end + binary "#{appdir}/PyCharm.app/Contents/MacOS/pycharm" zap trash: [ "~/Library/Application Support/JetBrains/PyCharm#{version.major_minor}",