Skip to content

Instantly share code, notes, and snippets.

@thanhtam92
Created October 28, 2014 14:33
Show Gist options
  • Save thanhtam92/d56563535760c1d6ad6b to your computer and use it in GitHub Desktop.
Save thanhtam92/d56563535760c1d6ad6b to your computer and use it in GitHub Desktop.
Changing SmartGit Free Trial License to Non-Commercial
Changing SmartGit Free Trial License to Non-Commercial
Some developers might overlook the license selection when using the SmartGit. Instead of choose non-commercial, they by default clicked Next on the “30 days Free Trial”. Worse thing is reinstall the SmartGit won’t get you to change the license.
To alter the license. First, go to
Windows: %APPDATA%\syntevo\SmartGit\<main-smartgit-version>
OS X: ~/Library/Preferences/SmartGit/<main-smartgit-version>
Unix/Linux: ~/.smartgit/<main-smartgit-version>
and remove the file settings.xml.
Then start SmartGit program again. This time you will be ask about all the Settings information, which including the license!
@waseemnabi
Copy link

not working on v23.1

@199daniels
Copy link

You can also apply for a none commercial license:
https://www.syntevo.com/register-non-commercial/
Or pay 6 USD a month for the commercial

@andfrolov7
Copy link

andfrolov7 commented Oct 29, 2024

Works fine on v20.2.6. alxpsr Thanks!

I adapted the script for macOS:

#!/usr/bin/env zsh
config="/Users/$USER/Library/Preferences/SmartGit/20.2/preferences.yml"
# current date in msec + 25 days
NEW_DATE=$(date -j -v +25d +%s000)
# sed is for change old date for new one in config
sed -r -i '' "s/(listx: \{eUT: )[0-9]+/\1$NEW_DATE/g" $config
sed -r -i '' "s/(, nRT: )[0-9]+/\1$NEW_DATE/g" $config

@aekarimov
Copy link

aekarimov commented Nov 2, 2024

Works fine on v20.2.6. alxpsr Thanks!

I adapted the script for macOS:

#!/usr/bin/env zsh
config="/Users/$USER/Library/Preferences/SmartGit/20.2/preferences.yml"
# current date in msec + 25 days
NEW_DATE=$(date -j -v +25d +%s000)
# sed is for change old date for new one in config
sed -r -i '' "s/(listx: \{eUT: )[0-9]+/\1$NEW_DATE/g" $config
sed -r -i '' "s/(, nRT: )[0-9]+/\1$NEW_DATE/g" $config

Please tell me where the file smartgit.sh is located in MacOS

@andfrolov7
Copy link

andfrolov7 commented Nov 3, 2024

Works fine on v20.2.6. alxpsr Thanks!
I adapted the script for macOS:

#!/usr/bin/env zsh
config="/Users/$USER/Library/Preferences/SmartGit/20.2/preferences.yml"
# current date in msec + 25 days
NEW_DATE=$(date -j -v +25d +%s000)
# sed is for change old date for new one in config
sed -r -i '' "s/(listx: \{eUT: )[0-9]+/\1$NEW_DATE/g" $config
sed -r -i '' "s/(, nRT: )[0-9]+/\1$NEW_DATE/g" $config

Please tell me where the file smartgit.sh is located in MacOS

It's here: /Applications/SmartGit.app/Contents/Resources/smartssh.sh, but this script not run when you run app from LaunchPad or Application folder. Better rename SmartGit executable file to SmartGit_ in /Applications/SmartGit.app/Contents/MacOS/
And then create new text file near the SmartGit_ with this content and name it as SmartGit:

#!/usr/bin/env zsh
config="/Users/$USER/Library/Preferences/SmartGit/20.2/preferences.yml"
# current date in msec + 25 days
NEW_DATE=$(date -j -v +25d +%s000)
# sed is for change old date for new one in config
sed -r -i '' "s/(listx: \{eUT: )[0-9]+/\1$NEW_DATE/g" $config
sed -r -i '' "s/(, nRT: )[0-9]+/\1$NEW_DATE/g" $config
/Applications/SmartGit.app/Contents/MacOS/SmartGit_

@aekarimov
Copy link

@andfrolov7 Thanks a lot!

P.S. I found a solution to add a script as a new application in the Applications folder.

After previous actions:

  1. Make the .sh file executable: chmod +x /Applications/SmartGit.app/Contents/MacOS/SmartGit
  2. Create an Application using Automator:
  • Open Automator. You can find it via Spotlight (press Cmd + Space, then type "Automator").
  • Choose to create a new document and select "Application".
  • In the left pane, under "Utilities", find "Run Shell Script" and drag it to the right pane.
  • Replace the text in the script box with the /Applications/SmartGit.app/Contents/MacOS/SmartGit
  • Save the Automator application (File > Save), name it (for example, SmartGift), and choose Where: "Applications"
  1. Optionally, you can change the Application Icon:
  • Find an image to use as the new icon (for example, from SmartGit: /Applications/SmartGit.app/Contents/Resources/icon.icns)
  • Open the image in Finder.
  • Right-click on your newly created application on the Applications folder and select "Get Info".
  • Drag and drop the new icon to the small icon at the top left corner of the Info window.

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