How to enable/disable accounts from CLI ?
Hi
Someone know how to disable/enable specific account from CLI ?
Thanks
Hi
Someone know how to disable/enable specific account from CLI ?
Thanks
This works; to a degree. I just tried this on my device, it disables email accounts in 'Accounts' but not the Jolla account and not the option to Add an account (facebook.fruux,google,etc)
Disable Accounts - $ /usr/bin/sailfish-accounts-tool --provider-available disable -p email || :
Enable Accounts - $ /usr/bin/sailfish-accounts-tool --provider-available true -p email || :
I found the info in these 2 files in /usr/lib/oneshot.d
- disable-email-accounts
& enable-email-accounts
I haven't looked any further to see what else is available, hope this helps.
EDIT- If the last item is changed , say from 'email' to 'jolla' then the jolla account becomes disabled and is enabled the same way. This also works for Yahoo account when installed;
Disable Jolla account - $ /usr/bin/sailfish-accounts-tool --provider-available disable -p jolla || :
Enable Jolla account - $ /usr/bin/sailfish-accounts-tool --provider-available enable -p jolla || :
Regards,
lol, as I said, I haven't looked any further to see what else is available. :)
Spam Hunter ( 2015-12-02 22:17:25 +0300 )i checked files in thi directly, but didn't find...
Also, to disable/enable email, instead ":" we need to write specific email address ?
Good question, I don't know. You're the dev out of the 2 of us!, the Schturminator, banging out apps quicker than I can think about them! :D I'm just browsing system files for clues and posting what I find :)
Spam Hunter ( 2015-12-02 22:36:56 +0300 )Found this message after trying to disable 3 different accounts;
To modify the value of a setting, use -m switch:
/usr/bin/sailfish-accounts-tool -p <provider_name> -s <service_name> -m <setting_name> <setting_type> <setting_value>
Asked: 2015-12-02 17:51:11 +0300
Seen: 385 times
Last updated: Dec 02 '15
For chat accounts you can use mc-tool
coderus ( 2015-12-04 21:52:08 +0300 )