Home Download Buy Blog Forum Support

How change the location of session files ? [Resolved]

How change the location of session files ? [Resolved]

Postby Teranx on Sun Jan 13, 2013 9:42 am

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. :shock:
Last edited by Teranx on Thu Jan 17, 2013 10:50 am, edited 1 time in total.
Teranx
 
Posts: 6
Joined: Sun Jan 13, 2013 9:19 am

Re: How change the location of session files ?

Postby svenax on Sun Jan 13, 2013 6:04 pm

Why?
svenax
 
Posts: 155
Joined: Tue Dec 20, 2011 12:47 pm

Re: How change the location of session files ?

Postby Teranx on Mon Jan 14, 2013 11:06 am

svenax wrote:Why?

Because of privacy issues, you know, all the contents of the document are written here.
Teranx
 
Posts: 6
Joined: Sun Jan 13, 2013 9:19 am

Re: How change the location of session files ?

Postby iamntz on Mon Jan 14, 2013 11:58 am

%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 :)
iamntz
 
Posts: 917
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: How change the location of session files ?

Postby Teranx on Tue Jan 15, 2013 2:16 am

iamntz wrote:%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 :)


So how to do? Add some code in "user settings" :?:
% appdata% system environment variable can not be modified.
Teranx
 
Posts: 6
Joined: Sun Jan 13, 2013 9:19 am

Re: How change the location of session files ?

Postby iamntz on Tue Jan 15, 2013 4:51 am

First of all, you move your sublime text 2 folder into a super secure location. Then, in a cmd window you type:
Code: Select all
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 :)
iamntz
 
Posts: 917
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: How change the location of session files ?

Postby Teranx on Thu Jan 17, 2013 2:16 am

iamntz wrote:First of all, you move your sublime text 2 folder into a super secure location. Then, in a cmd window you type:
Code: Select all
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 :)


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?
Teranx
 
Posts: 6
Joined: Sun Jan 13, 2013 9:19 am

Re: How change the location of session files ?

Postby iamntz on Thu Jan 17, 2013 5:21 am

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.
iamntz
 
Posts: 917
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: How change the location of session files ?

Postby Teranx on Thu Jan 17, 2013 10:49 am

iamntz wrote: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.


Portable Edition! That's it!Did not notice, I am sorry.
My English is poor. REALLY appreciate your help.
Love you. :D
Teranx
 
Posts: 6
Joined: Sun Jan 13, 2013 9:19 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 16 guests