We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

How to enable/disable accounts from CLI ?

asked 2015-12-02 17:51:11 +0200

Schturman gravatar image

Hi
Someone know how to disable/enable specific account from CLI ?
Thanks

edit retag flag offensive close delete

Comments

For chat accounts you can use mc-tool

coderus ( 2015-12-04 21:52:08 +0200 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2015-12-02 21:36:06 +0200

Spam Hunter gravatar image

updated 2015-12-02 22:32:18 +0200

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,

edit flag offensive delete publish link more

Comments

Thanks, and facebook, xmpp etc ?

Schturman ( 2015-12-02 21:45:18 +0200 )edit

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 )edit

i checked files in thi directly, but didn't find...
Also, to disable/enable email, instead ":" we need to write specific email address ?

Schturman ( 2015-12-02 22:24:07 +0200 )edit

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 +0200 )edit

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>

Spam Hunter ( 2015-12-02 22:42:00 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2015-12-02 17:51:11 +0200

Seen: 376 times

Last updated: Dec 02 '15