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

How to enable/disable accounts from CLI ?

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

Schturman gravatar image

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

edit retag flag offensive close delete


For chat accounts you can use mc-tool

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

1 Answer

Sort by » oldest newest most voted

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

Edz gravatar image

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

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 || :


edit flag offensive delete publish link more


Thanks, and facebook, xmpp etc ?

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

lol, as I said, I haven't looked any further to see what else is available. :)

Edz ( 2015-12-02 22:17:25 +0300 )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 +0300 )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 :)

Edz ( 2015-12-02 22:36:56 +0300 )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>

Edz ( 2015-12-02 22:42:00 +0300 )edit
Login/Signup to Answer

Question tools



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

Seen: 293 times

Last updated: Dec 02 '15