EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Directory created in the system's disk root
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Flint
Posted on: 11/26/2011 1:21 am
Home away from home
Joined: 10/9/2006
From: Moscow
Posts: 155
Directory created in the system's disk root
OS WinXP SP3, EmEditor 11.0.2.

My system drive is D:. Sometimes I discover that a new directory named Emurasoft appears in the root of this disk. Inside it only one empty directory is present, the full path is
D:\Emurasoft\EmEditor\Workspace\

Unfortunately, I cannot find out at what moment it is created. I tried restarting EmEditor, closing tray icon, reopening EE again, saving and restoring workspace (since the directory name suggests that it has something to do with workspaces), but all in vain, the directory does not appear, and the workspace is saved and restored correctly, using "Local Settings\Application Data\Emurasoft\" directory in my profile. Of course, I don't monitor the root of the drive constantly, but after some time I navigate there for something or other, and - bump! - "Emurasoft" is sitting there again.

I think I'm going to write a simple monitoring program that will look for appearance of this directory for me and notify with messagebox, but before that I decided to write here and ask, maybe, you have any idea how this could happen?
Stefan
Posted on: 11/26/2011 8:21 am
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 261
Re: Directory created in the system's disk root
Hi.

Same OS here and portable EmEditor version with ini instead of registry.

I never have seen such folder in the root.
That folder belongs to your %AppData% folder in your profil folder.
For me (as portable) i have an AppData folder in my EmEditor folder.

For an test:
what path do you get if you type %appdata% in the address bar of TC?

Because you mentioned D as system drive you should see something like
"D:\Documents and Settings\Flint\Application Data\"
but in your language

and there should be the subfolder "Emurasoft\EmEditor\Workspace"


.

Flint
Posted on: 11/26/2011 9:46 am
Home away from home
Joined: 10/9/2006
From: Moscow
Posts: 155
Re: Directory created in the system's disk root
As I wrote, the AppData directory and EE workspace location are absolutely correct and always working. %APPDATA% points to "D:\Documents and Settings\<username>\Application Data\", EmEditor workspace storage is located in "D:\Documents and Settings\<username>\Local Settings\Application Data\Emurasoft\EmEditor\Workspace\", it is saved when I call Save Workspace, and restored when I call Restore Workspace command.

But sometimes, for unknown reason and unknown purpose, at some unknown moment of time in the drive root an empty "D:\Emurasoft\EmEditor\Workspace\" directory suddenly appears. I can remove it, then work for several days or even weeks without appearing of this directory, even though I use various EE functions (including saving/restoring workspaces and files). But some day it appears again.
Yutaka
Posted on: 11/26/2011 11:29 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: Directory created in the system's disk root
Hi Flint,

Are you using INI settings (portable) or the Registry?


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Flint
Posted on: 11/26/2011 11:33 am
Home away from home
Joined: 10/9/2006
From: Moscow
Posts: 155
Re: Directory created in the system's disk root
Registry.
Flint
Posted on: 11/27/2011 1:15 am
Home away from home
Joined: 10/9/2006
From: Moscow
Posts: 155
Re: Directory created in the system's disk root
OK, I wrote a program for watching for the directory, and today found out what the problem was. The directory appears when I run git commit command, which I customized to use a separate EmEditor instance (with /sp argument) as commit message editor.

I compared environment variables of this instance of EmEditor with variables of EmEditor started normally (using Process Explorer), and saw that APPDATA path is invalid in the instance started by git. The problem is, my Windows account name is cyrillic, and when I start git it changes the current codepage or something like that, and cyrillic name in the path becomes gibberish.

So, probably, there is nothing EmEditor can do about it.


<Added>
OK, I just wrote a simple wrapper that changes all the environment variables to their appropriate values and then starts EmEditor, and customized git to use this wrapper. So far seems to work fine, without creating the D:\Emurasotf directory.

BTW, it's not APPDATA that caused this problem but USERPROFILE variable.
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文