How to enable/disable accounts from CLI ?
Hi
Someone know how to disable/enable specific account from CLI ?
Thanks
We have moved to a new Sailfish OS Forum. Please start new discussions there.
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 +0200 )editGood 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 +0200 )editFound 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>
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2015-12-02 17:51:11 +0200
Seen: 376 times
Last updated: Dec 02 '15
A libre.fm client/scrobbler? [answered]
Enable setting of account-specific synchronization schedule [released]
Bug: Google account logout notifications keep re-appearing
Provide an option to set default "From:" mail address [released]
Enhancement: Presence details screen [answered]
Bug: cannot create account when wifi and mobile data are activated
For chat accounts you can use mc-tool
coderus ( 2015-12-04 21:52:08 +0200 )edit