Open hectron opened 5 years ago
I like the direction you're taking this, but just a few questions.
Because those 2 files were intended to stay inside the folder, it was unnecessary to give them the .fbmessenger prefix. Could you give a scenario where users would find those 2 files elsewhere?
Would moving those files out of the installation folder mean that when fb-messenger-cli
is being uninstalled, the 2 files would stay intact instead of being wiped? Also, would there be permission issues (Say program tries to create settings file and credential file in a folder where it does not have write permission)?
If wiping those 2 files is a desired functionality, would it be better to instead create flags for it, so you could, for example, call
$ fb-messenger-cli --wipe-login
or
$ fb-messenger-cli --wipe-settings
to interact with those 2 files?
Thanks for the follow up, @p1ho! I appreciate you taking the time to ask questions.
FB_MESSENGER_DATA_DIR
to a folder they do not have permission to write to.Thanks for answering! I'd say everyone has their own habits, so I won't be too opinionated on this.
On Windows, while it's not standard behavior to remove previous configuration, uninstallers usually prompt users whether they want to do that on uninstall (it'd be like a checkbox in the GUI).
Hi @hectron I'm going to try your PR especially to see how it works out on Windows. Sorry for the late response, as you can imagine we're pretty busy with work and all...
Thanks for your contribution!
@Alex-Rose , I think there's a bug where if you log in for the first time in a while, it does a different flow than when you've already been signed in, which results in an infinite loop.
I've had success by closing the app and trying again. However, the last few times my account has been flagged by Facebook as fraudulent, so I haven't tried to use the app too much to diagnose.
@Alex-Rose , I think there's a bug where if you log in for the first time in a while, it does a different flow than when you've already been signed in, which results in an infinite loop.
I've had success by closing the app and trying again. However, the last few times my account has been flagged by Facebook as fraudulent, so I haven't tried to use the app too much to diagnose.
I can confirm this happened on my machine as well.
Problem
Whenever a user has to wipe out their
.kryptonite
or.settings
, they have to navigate to whereverfb-messenger-cli
is installed. In addition, the file names.kryptonite
and.settings
do not make much sense if they are found elsewhere.Proposal
This pull request:
.kyptonite
to.fbmessenger.enc
and.settings
to.fbmessengerrc
FB_MESSENGER_DATA_DIR
environment variable is set toIn addition to this, it fixes the regression tests, so that whenever they are run, a users' settings are not altered. The tests also now won't ping @Alex-Rose directly. :wink: