Sublime Forum

How change the location of session files ? [Resolved]

#1

In win7,“Session.sublime_session” & “Auto Save Session.sublime_session” default location is "% appdata% \ Sublime Text2 \ Settings ", I want to save it to another location, how to do. :open_mouth:

0 Likes

#2

Why?

0 Likes

#3

Because of privacy issues, you know, all the contents of the document are written here.

0 Likes

#4

%appdata% is located in your user folder. Should not be a privacy concern…

However, you could just do a symlink to your super secure folder and that’s it :smile:

0 Likes

#5

[quote=“iamntz”]%appdata% is located in your user folder. Should not be a privacy concern…

However, you could just do a symlink to your super secure folder and that’s it :smile:[/quote]

So how to do? Add some code in “user settings” :question:
% appdata% system environment variable can not be modified.

0 Likes

#6

First of all, you move your sublime text 2 folder into a super secure location. Then, in a cmd window you type:

ln -s "Z:\your\super\secure\folder\Sublime Text 2" "c:\users\YOUR_USER\AppData\Roaming\Sublime Text 2"

Also, ln --help is a bit of… well, help :smile:

0 Likes

#7

[quote=“iamntz”]First of all, you move your sublime text 2 folder into a super secure location. Then, in a cmd window you type:

ln -s "Z:\your\super\secure\folder\Sublime Text 2" "c:\users\YOUR_USER\AppData\Roaming\Sublime Text 2"

Also, ln --help is a bit of… well, help :smile:[/quote]

Thanks for your help.
This looks like a linux command, it’s “mklink” in win7.
But, I think you got it wrong.It looks just a shortcut.
I mean, sublime Don’t write these data in the C partition, but in another specified partition.Is there a better way?

0 Likes

#8

Yeah, mklink. For some reasons I have ln command available tho.

Anyhow, what’s wrong with having files written in a different location?

Just came to me, I think you could just use portable version.

0 Likes

#9

[quote=“iamntz”]Yeah, mklink. For some reasons I have ln command available tho.

Anyhow, what’s wrong with having files written in a different location?

Just came to me, I think you could just use portable version.[/quote]

Portable Edition! That’s it!Did not notice, I am sorry.
My English is poor. REALLY appreciate your help.
Love you. :smiley:

0 Likes