I believe I have discovered what might be the primary issue with using
the C:\users\username\AppData\roaming directory. The current default
for the roaming directory is to be encrypted with windows 10 (1903
update). I believe the encryption is the root of the problem. After a
short period of time of using a Dabo app and then closing the app -
sqlite reports that it can't open the Dabopreference.db database. This
of course assumes that the user is on a network with a domain controller.
After making the change to use the 'local' directory I have not seen an
issue.
Johnf
On 10/1/19 8:01 AM, johnf wrote:
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
_______________________________________________
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]
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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]