Sublime Forum

[UBUNTU] ST3: custom package and settings folder path

#1

I’m an Ubuntu user and I’m migrating from Sublime Text 2 to Sublime Text 3. In ST2 I used to keep my packages inside a folder named “Data” placed inside the installaiton path: the editor automatically recognized it as the correct package folder, and used that one instead of the default .config path.

I just finished installing Sublime Text 3 and tried doing the same thing, but apparently ST3 doesn’t recognize the “Data” folder anymore anbd continues to use the .config. Is there a way to save packages and settings inside the installation folder like I used to with the previous version?

Thank you.

0 Likes

#2

I’m not sure about “portable” installations on Linux, but would symlinking work for you?

$ ln -snf ~/.config/sublime-text-3 ~/path/to/wherever

0 Likes

#3

[quote=“quodlibet”]I’m not sure about “portable” installations on Linux, but would symlinking work for you?

$ ln -snf ~/.config/sublime-text-3 ~/path/to/wherever[/quote]

Thanks for the answer! Personally It would still be better than having the packages and the installation separated as it is now, but I’d still prefer having a portable version like S2.

If such a solution isn’t possible I’ll use your suggestion!

0 Likes

#4

I found the culprit: ST3 will correctly use the custom Data folder only if you start it from the folder itself (the sidebar link will still use the .config path). The problem lies with the .desktop: it pointed to “/opt/sublime_text/sublime_text”, instead of my portable location. Change that path to your location and Sublime will recognize the portable Data folder as his settings and packages location.

  • Remove Sublime Text 3 installation package “sudo apt-get remove sublime-text-installer”
  • Open sublime_text.desktop in your portable sublime location
  • Change the three exec= locations to your portable path, remember to keep the - and – options
  • Copy sublime_text.desktop you just edited to /usr/share/applications with “sudo cp yourFileLocation /usr/share/applications/sublime_text.desktop”
  • Reboot

Remember to delete all old Sublime Text 2 .desktop files you had.

0 Likes