How to edit configuration files..????

Please post your problem description here

Moderator: Barb@Invincea

Post Reply
Cadillakin

How to edit configuration files..????

Post by Cadillakin » Mon Mar 26, 2007 5:17 pm

I know nothing about Unicode... When I open the sandboxie.ini file in notepad, I just see a single string of characters across the top. EmEditor will open it as a readable file, but everything is double-spaced, not at all like I am used to for Windows editing of ini files.. I think if I try to do any editing, I will mess it up when I try and save it...

I looked at other editors... nothing.. Help on this please

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Tue Mar 27, 2007 5:30 pm

I use TextPad and it opens Sandboxie.ini just fine. It's a terrific editor.
tzuk

Paul_K
Posts: 477
Joined: Sun Mar 18, 2007 3:35 pm

Editing the configuration file

Post by Paul_K » Tue Mar 27, 2007 6:26 pm

Is there any reason why you can't use the Sandboxie Main Window?
"Configuration/Edit configuration"

Cadillakin

Post by Cadillakin » Fri Mar 30, 2007 11:44 am

tzuk wrote:I use TextPad and it opens Sandboxie.ini just fine. It's a terrific editor.
Textpad also opens up the sandboxie.ini file in a double spaced manner.. the same as EM Editor. As stated, notepad opens it with a single scrolling line across the top of the page - unreadable. NONE of my other ini files open in this way...

Screenshot: http://i10.tinypic.com/4h02z9l.jpg

Cadillakin

Re: Editing the configuration file

Post by Cadillakin » Fri Mar 30, 2007 11:46 am

Paul_K wrote:Is there any reason why you can't use the Sandboxie Main Window?
"Configuration/Edit configuration"
The configuration editor within Sandboxie loads the respective ini file along with it's associated app. That is the problem, every app that loads it does not do so consistent with a plain ini file in windows.

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Sat Mar 31, 2007 11:50 am

damn, did you try going to "C:\Windows" right click Sandboxie.ini and open with wordpad? maybe it might display correct? also you should still be able to edit your conf, its just that it displays weird, thats all.

Cadillakin

Post by Cadillakin » Sat Mar 31, 2007 1:53 pm

SnDPhoenix wrote:damn, did you try going to "C:\Windows" right click Sandboxie.ini and open with wordpad? maybe it might display correct? also you should still be able to edit your conf, its just that it displays weird, thats all.
Same.. and while we are on the subject.. What is the point of having two sandboxie.ini files? One in windows and one in the home directory. I presume the one in the home directory is a dummy file, as it's date has remained the same as the install, while the windows file is 1000 bytes bigger and has a more recent file date.. leading one to believe that the home directory ini file has no real use or function.

Oneder
Posts: 364
Joined: Tue Aug 30, 2005 8:19 am
Location: Perth,West Oz

Post by Oneder » Sat Mar 31, 2007 7:55 pm

Opens fine here in notepad.

With notepad you did have format tab - wordwrap ticked?
Hunting the Hunter!

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Sat Mar 31, 2007 8:54 pm

Oneder wrote:Opens fine here in notepad.

With notepad you did have format tab - wordwrap ticked?
Turning on wordwrap wouldnt help in his situation, all it would do is wrap the text, the problem i see he has, is there is a space between every letter, and it is displayed weird.

Now i dont know about other ppl here, but i only have 1 Sandboxie.ini file, and that is in the windows dir, and when i goto Configuration->Edit Configuration it opens the one in the windows dir, so i have to wonder how/why you have 2 ini files? maybe they are conflicting? Anybody else have only 1 ini file or just me? well even if im supposed to have 2, everything is and always has worked fine. Also back on topic, i really dont know what to say, have you tried just editing the ini file anyways in its current condition, what happens?

Cadillakin

Post by Cadillakin » Sun Apr 01, 2007 12:59 am

SnDPhoenix wrote:i really dont know what to say, have you tried just editing the ini file anyways in its current condition, what happens?
I think I got it worked out.. as to how it all occurred...

Sandboxie only has one sandboxie.ini file located in windows. Somewhere along the line when I attempted a change, I saved it to the Sandboxie home directory.

This is the first time I have ever had a single hiccup with EmEditor, a superior text editor. In the case of this particular file, sandboxie.ini, it seems that my text editor, EmEditor, detects the native unicode encoding of the file and the null characters within, replacing the null characters with spaces. That causes the double-spacing. When I changed the original Sandboxie.ini and saved it to the Sandboxie home directory, I think I preserved the double spacing that the editor used to replace the null characters, I made a single change in EmEditors default configurations, changing,the "detect unicode signatures and UTF-8" to "Detect All". Right away, the ini file showed as it should...

Problem solved.. My explanation might be faulty though.. The developer will know how to explain it better than I..

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Sun Apr 01, 2007 8:47 am

Sandboxie only has one sandboxie.ini file located in windows. Somewhere along the line when I attempted a change, I saved it to the Sandboxie home directory.
(WindowsRoot)\Sandboxie.ini takes precedence over the alternative location (SandboxieHome)\Sandboxie.ini. This is described in a bit more detail in the Placement section of the SandboxieIni page.
Problem solved.. My explanation might be faulty though.. The developer will know how to explain it better than I..
Uh, no he won't. :) As far as I understand, this is a glitch introduced by you, then resolved by you, so what can I say about it?
tzuk

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests