Skip to content

Instantly share code, notes, and snippets.

@thanhtam92
Created October 28, 2014 14:33
Show Gist options
  • Select an option

  • Save thanhtam92/d56563535760c1d6ad6b to your computer and use it in GitHub Desktop.

Select an option

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!
@hound672

hound672 commented Mar 4, 2023

Copy link
Copy Markdown

Now i received message that smartgit will stop working on May 30 (even old version).
So does it mean that there is no way to use old version for non commercial?

@Chester-Gillon

Copy link
Copy Markdown

So does it mean that there is no way to use old version for non commercial?

Found Non-commercial licensing changes for SmartGit 22.1 which explains the change in license. It has a link to Apply for Non-Commercial License. I haven't yet attempted to apply using the Open Source application via GitHub.

@vijes

vijes commented Apr 4, 2023

Copy link
Copy Markdown

solicita para la licencia n comercial , que tengan un minimo de 100 aportes en github para autorizarla.. =(

@mametjunior212

Copy link
Copy Markdown

Yoг can remove "evaluation" file

thanks

@PietroFossati

Copy link
Copy Markdown

So does it mean that there is no way to use old version for non commercial?

Found Non-commercial licensing changes for SmartGit 22.1 which explains the change in license. It has a link to Apply for Non-Commercial License. I haven't yet attempted to apply using the Open Source application via GitHub.

Did you find a solution for "Non-Commercial License" without a GitHub account that respect "everyone who spends the majority of their work on open-source projects (before, it was only “to actively work on open-source projects”, which is significantly more restrictive)"?

@awalti

awalti commented Aug 27, 2023

Copy link
Copy Markdown

For me it's back to my previous client. I don't fit their idea of a non-commercial user but the hobby license is too restrictive for me.

@alxpsr

alxpsr commented Sep 8, 2023

Copy link
Copy Markdown

For me it's back to my previous client. I don't fit their idea of a non-commercial user but the hobby license is too restrictive for me.

Which client do you use?

@bfd69

bfd69 commented Jan 11, 2024

Copy link
Copy Markdown

same here, i work for education but the process seam too complicated to get a free licence

@alxpsr

alxpsr commented Jan 24, 2024

Copy link
Copy Markdown

Sup guys. I use now v20.2.6 without any troubles. You can edit your smartgit.sh file for auto-reset trial period as follows:

config="/home/$USER/.config/smartgit/<YOUR_SMARTGIT_VERSION>/preferences.yml"
# current date in msec + 25 days
NEW_DATE=$(date -d"+25 days" +%s%3N)
# 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

If you use your SmartGit instance as deb-package probably your smartgit.sh located at /usr/share/smartgit/bin/smartgit.sh

@MrBobFreeman

Copy link
Copy Markdown

@alxpsr this is very elegant and works great, thanks!

@richardjacob

Copy link
Copy Markdown

@alxpsr, It works perfectly. Thanks!

@waseemnabi

Copy link
Copy Markdown

not working on v23.1

@199daniels

Copy link
Copy Markdown

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

andfrolov7 commented Oct 29, 2024

Copy link
Copy Markdown

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

aekarimov commented Nov 2, 2024

Copy link
Copy Markdown

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

andfrolov7 commented Nov 3, 2024

Copy link
Copy Markdown

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
Copy Markdown

@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