Tao Effect Forums

Espionage => Espionage 3 => Topic started by: dafacto on February 04, 2014, 08:59:09 AM

Title: Password Prompt on Launch
Post by: dafacto on February 04, 2014, 08:59:09 AM
Hello,

I have installed Espionage on my MacBook Air and on my iMac.

On my MBA, when I launch Espionage, I'm asked for a master password, even though I have no folders set for auto-unlock:

https://www.dropbox.com/s/c1vitduno4yywte/Screenshot%202014-02-04%2017.55.04.png

On my iMac, however, I am NOT prompted for a master password when I launch the app.

My preference is the iMac's behavior, where I only enter a password when I need to unlock a list. But I can't find any preference or setting in Espionage on the MBA which would seem to control that behavior.

Any suggestions would be greatly appreciated. Thanks in advance.
Title: Re: Password Prompt on Launch
Post by: zsolt on February 04, 2014, 11:20:47 PM
Hello, so far we got no reports on this problem.
For a start, I would try to put all folders to auto unlock, relaunch Espionage, check if it auto unlocked all the folders, then uncheck the auto unlock on all folders and relaunch espionage again.

I know this does not seems like a professional suggestion, as if it helps, we will never know why it happened in the first place. If you prefer, then hold it there and I will ask developers if there is any file we can check for the status of the set flags.

Let me know your preference,

Rgds
Zsolt
Title: Re: Password Prompt on Launch
Post by: dafacto on February 05, 2014, 09:21:02 AM
Hello,

I followed your instructions, and re-enabled Auto-Unlock on all my folders. I then quit/re-launched Espionage. It asked me for the password, and opened all the folders. I then, disabled Auto-Unlock on all folders, quit and re-launched Espionage. Unfortunately, it again asked me for the password. :-(

Hopefully your developers can help. Thanks in advance.
Title: Re: Password Prompt on Launch
Post by: zsolt on February 05, 2014, 09:35:03 AM
Ill check with them, and let you know.

Rgds
Zsolt
Title: Re: Password Prompt on Launch
Post by: zsolt on February 06, 2014, 01:08:41 PM
Hello, I got a response from devs. It is not possible to detect exactly which folder is set to auto unlock, but there is one property which will tell Espionage to ask for password on launch, here is how to get it,

launch terminal and run

defaults read com.taoeffect.Espionage3 TENeedsAutounlock

let me know if it says 1 or 0, then we try to take it from there.

Thanks
Zsolt
Title: Re: Password Prompt on Launch
Post by: dafacto on February 06, 2014, 10:29:04 PM
Hello, I ran that terminal command, and it returned, "1".

Currently, my folder list contains only two folders. Note, however, that since creating my folder list, I have added and removed some folders — and perhaps auto-unlock was set on some of those (I can't remember). So probably the bug is relating to removing a folder that has auto-unlock set.
Title: Re: Password Prompt on Launch
Post by: zsolt on February 06, 2014, 10:46:36 PM
OK, so the first questions is: did you ever create folder sets, i.e. define one more password for Espionage, if you did, it might be that there is a folder set to auto unlock in that other folder set, could this be possible?

The other thing would be, to simply set the value to 0, and it will not ask for password any more, till you again set one folder to auto unlock. It might indeed be that in some combination of events the preferences were not updated correctly and the value remained on 1 for no good reason.

To set the value to 0 use

defaults write com.taoeffect.Espionage3 TENeedsAutounlock 0

Then try to launch Espionage for few times, see if it stays OK, then again try to set, unset some folders and see if it behaves (if you wish to play with this further).

Thanks for your feedback and time for testing.

Rgds
Zsolt
Title: Re: Password Prompt on Launch
Post by: dafacto on February 06, 2014, 11:54:19 PM
Ok, setting TENeedsAutounlock to 0 has resolved the problem.

BTW, I didn't have additional folder lists. So my suspicion is that there's a bug (or some condition) under which if a folder with auto-unlock enabled is deleted, the TENeedsAutounlock setting doesn't get updated.

Hope this helps, and thanks for your help as well!
Title: Re: Password Prompt on Launch
Post by: zsolt on February 07, 2014, 10:35:12 PM
Well, what would really help is if you could reproduce it, then we could fix it.
If you run into the problem again, please let us know.

Rgds
Zsolt
Title: Re: Password Prompt on Launch
Post by: dafacto on February 08, 2014, 08:52:39 AM
I posted the steps to reproduce this in the other thread.
Title: Re: Password Prompt on Launch
Post by: zsolt on February 08, 2014, 11:03:41 PM
Reply from another post:

Indeed it is.
The auto unlock flag is not updated in case of folder decryption or "force removal from database" action.
I will let devs know and it will be fixed in next release, till then, if you forget to remove the auto unlock before decryption, first make sure you do not have any other folder set to auto unlock and then run the command
defaults write com.taoeffect.Espionage3 TENeedsAutounlock 0
from terminal, and this will reset the flag.