The current utils.py->getUserAppDataDirectory() uses either
 "dd = shell.SHGetFolderPath(0, shellcon.CSIDL_APPDATA, 0, 0)"
 or
dd = os.environ.get("APPDATA")
to retrieve the directory/folder to write the dabopreference.db file.   In the past, on windows 7 those functions returned a simple path to write the db file.  On windows 10 the location/path  is actually to "users\username\AppData\roaming". The 'roaming' folder is used for a roaming profile and is looking for small files to share.

I believe the issue I am having with the program opening and immediately closing has  something to do with where the db file is being stored.  The roaming folder/directory is used for a roaming profile and not for the local data store.  The roaming profile is also expecting a smaller file.  Making the change to:
dd = os.environ.get("LOCALAPPDATA")
and
"dd = shell.SHGetFolderPath(0, shellcon.CSIDL_LOCAL_APPDATA, 0, 0)"
appears to correct the problem.

I have made the change for a user and will report if this change works (my test appears to be good).

Johnf

On 9/30/19 2:49 PM, Ed Leafe wrote:
On Sep 30, 2019, at 4:37 PM, johnf <[email protected]> wrote:
Thanks for the quick response!  I have not changed the default - it remains 
True.  So as I change the sized of the frame and  size of the font the dPref.py 
is updating the DB????  Do you recall where that might be happening? or how it 
works.  Do you have any advise on how to track the down the issue?
That’s one of the more “magical” parts of Dabo. The dPref class will 
automatically persist changes when its values are set. Search the code for 
“PreferenceManager” to see where it’s used.


-- Ed Leafe


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/[email protected]

Reply via email to