Active Topics

 


Reply
Thread Tools
Posts: 135 | Thanked: 73 times | Joined on Sep 2011 @ San Fran
#41
Is it possible to have a small application with UI created to facilitate proper adding of accounts? or is it impossible due to root being required?
 
Niwakame's Avatar
Posts: 120 | Thanked: 126 times | Joined on Nov 2011 @ Germany
#42
Originally Posted by warrentaye View Post
Is it possible to have a small application with UI created to facilitate proper adding of accounts? or is it impossible due to root being required?
It should work, once all services and protocols are installed. One could package all the XML files and to add the accounts only mc-tool and sqlite3 is needed. They both don't need root permissions.


This also works well for ICQ, but it's disabled after a restart.

Do we have a local file that's executed upon boot? Something like rc.local?
Adding the 'mc-tool enable haze/icq/...' line there ...should work because that's all what's needed after reboot to get it working again.

Last edited by Niwakame; 2011-12-06 at 09:49.
 
Posts: 307 | Thanked: 1,460 times | Joined on May 2011 @ Switzerland
#43
If you get stuck, then typing '.schema accounts' or '.schema settings' will tell you what the fields are called, which may help

Originally Posted by RafaelVlmendes View Post
insert into accounts values (null, 'me@hotmail.com', 'msn', 1);
"me@hotmail.com" = my email? or i need write "me" ?
This is just the display name, which is displayed on the account screen beneath the protocol name.


Originally Posted by RafaelVlmendes View Post
insert into settings values(14, 20, 'tmc-uid', 's', 'manager/protocol/youraccount');
"youraccount" = my login msn? example blablabla@hotmail.com ?

insert into settings values(14,0,'username','s','me@hotmail.com');
insert into settings values(14,0,'password','s','mypassword');

"me@hotmail.com" = my email? or i need write "me" ?
"mypassword" = my real password?
All of these values are important to get right. The 14 should be changed to whatever your account id is, and the 20 is the service id. The 'tmc-uid' is the correct line from the output of 'mc-tool list'. Username and password are as you say.

The instructions contain the necessary steps to find these things.
 
Posts: 307 | Thanked: 1,460 times | Joined on May 2011 @ Switzerland
#44
Originally Posted by Niwakame View Post
It should work, once all services and protocols are installed. One could package all the XML files and to add the accounts only mc-tool and sqlite3 is needed. They both don't need root permissions.
There is a proper way to do this, which would let you create your accounts through the Accounts app like with google etc. The UI is already generated from the provider xml.


Originally Posted by Niwakame View Post
This also works well for ICQ, but it's disabled after a restart.

Do we have a local file that's executed upon boot? Something like rc.local?
Adding the 'mc-tool enable haze/icq/...' line there ...should work because that's all what's needed after reboot to get it working again.
Does this keep happening after every restart? I found that the settings table gradually accumulated settings from telepathy. The last one I saw appear was the avatar, and now I can see that in the Availability dialog. Here's the current state of my msn settings:

Code:
13|0|enabled|b|1
13|0|name|s|me@hotmail.com
13|0|password|s|mypassword
13|0|scheduler/schedule_enabled|b|0
13|0|scheduler/schedule_off_peak|i|-1
13|0|scheduler/schedule_offpeak_enabled|b|0
13|0|scheduler/schedule_peak|i|-1
13|0|scheduler/schedule_peak_days|i|31
13|0|scheduler/schedule_peak_enabled|b|0
13|0|scheduler/schedule_peak_end_time|i|1020
13|0|scheduler/schedule_peak_start_time|i|540
13|0|username|s|me@hotmail.com
13|20|AvatarMime|s|image/png
13|20|ConnectAutomatically|s|false
13|20|Nickname|s|Me
13|20|NormalizedName|s|me@hotmail.com
13|20|avatar_token|s|a17d12953036251b0a832f88e21aadfc378bbd86
13|20|enabled|b|1
13|20|tmc-uid|s|butterfly/msn/me_40hotmail_2ecom0
Maybe you could try setting the 'enabled' boolean one if it's not there? If it works, I'll add it to the last set of insertions on the first post. I'd like to keep that as simple as possible though.
 
Niwakame's Avatar
Posts: 120 | Thanked: 126 times | Joined on Nov 2011 @ Germany
#45
Originally Posted by billranton View Post

Maybe you could try setting the 'enabled' boolean one if it's not there? If it works, I'll add it to the last set of insertions on the first post. I'd like to keep that as simple as possible though.
The boolean is already there. It happens, when using mc-tool enable. So I guess this is a ephemeral value...

Code:
9|MyNickname|icq|1
9|0|username|s|**myICQUIN**
9|0|password|s|**myPassword**
9|19|tmc-uid|s|haze/icq/_********
9|19|NormalizedName|s|**myICQUIN**
9|19|ConnectAutomatically|s|false
9|19|enabled|b|1
Edit1: Oh wait...testing something.
Edit2:
Nah, I was missing this one in the CODE Section, but it's there
Code:
9|0|enabled|b|1
@billranton:
if you don't have a better idea, I would put this :
Code:
[Desktop Entry]
Name=ICQ MCTool Enabler
Exec=mc-tool enable haze/icq/_.....
X-MeeGo-Priority=Low
to ~/.config/autostart/icq_mctool.desktop, which would be fired after the Xwindow system is started...I know it's more overhead, but it's less than switching on developer mode every time on restart :P

Last edited by Niwakame; 2011-12-06 at 11:15.
 
Niwakame's Avatar
Posts: 120 | Thanked: 126 times | Joined on Nov 2011 @ Germany
#46
@billranton: I hope you don't get mad at me for hijacking this thread, if you wish to merge that with your first post, just tell me.
Btw: Big kudos to you, your guide made my day

Here the full guide for enabling ICQ:
http://talk.maemo.org/showthread.php...43#post1134043

Last edited by Niwakame; 2011-12-06 at 16:02.
 
Posts: 307 | Thanked: 1,460 times | Joined on May 2011 @ Switzerland
#47
That's great, I will try this myself later. I'll link to your post. I think a new Haze thread might be easier for folks to find though perhaps.

There's already an icq icon on my n9 though in the /usr/share/themes/blanco/meegotouch/icons/ folder. Are they missing on your phone? What do you have? I'll list them all on the first post.
 
Niwakame's Avatar
Posts: 120 | Thanked: 126 times | Joined on Nov 2011 @ Germany
#48
Originally Posted by billranton View Post
That's great, I will try this myself later. I'll link to your post. I think a new Haze thread might be easier for folks to find though perhaps.
Don't worry, we got already picked up by Maemo Weekly News on Twitter :P I just want to wait until somebody other than me tried this before I start a new thread. So please reply, if it's working for you, using the instructions.
I tinkered with ICQ on my N9 several times before and I can't tell for sure that I haven't missed a step.

There's already an icq icon on my n9 though in the /usr/share/themes/blanco/meegotouch/icons/ folder. Are they missing on your phone? What do you have? I'll list them all on the first post.
You sure there's an icon-m-service-icq.png ? There was only a icon-s-service-icq.png in my folder.

I will get the list later, as my openssh-server is always failing to start when enabling Developer Mode for the second time, unless I restart the phone
 
Posts: 307 | Thanked: 1,460 times | Joined on May 2011 @ Switzerland
#49
Originally Posted by Niwakame View Post
Don't worry, we got already picked up by Maemo Weekly News on Twitter :P


Originally Posted by Niwakame View Post
You sure there's an icon-m-service-icq.png ? There was only a icon-s-service-icq.png in my folder.

I will get the list later, as my openssh-server is always failing to start when enabling Developer Mode for the second time, unless I restart the phone
Here's my list. This is on an n9 PR1.1 locale 009 (swiss black):

Code:
$ find /usr/share/themes/blanco/meegotouch/icons | grep icon-.-service | sort

/usr/share/themes/blanco/meegotouch/icons/icon-m-service-aol-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-att.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-baidu.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-bing.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-caldav.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-dopplr.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-dropbox.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-exchange.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-facebook.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-firefox.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-flickr.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-gmail.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-google-calendar.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-google.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-gtalk.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-hotmail.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-icq.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-jabber.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-lastfm.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-mail-for-exchange.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-msn-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-msn.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-myspace.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-nfc.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-nokia-account.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-ovi-music.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-ovi.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-picasa.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-service-att.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-sip.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-skype.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-tippit.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-twitter.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-vodafone.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-yahoo-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-yandex.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-youtube.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-aol-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-att.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-baidu.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-bing.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-caldav.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-dopplr.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-dropbox.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-exchange.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-facebook.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-firefox.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-flickr.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-gmail.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-google-calendar.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-google.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-gtalk.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-hotmail.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-icq.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-jabber.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-lastfm.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-mail-for-exchange.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-msn-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-msn.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-myspace.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-nfc.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-nokia-account.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-ovi-music.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-ovi.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-picasa.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-sip.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-skype.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-tippit.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-twitter.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-vodafone.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-yahoo-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-yandex.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-youtube.png
 
Niwakame's Avatar
Posts: 120 | Thanked: 126 times | Joined on Nov 2011 @ Germany
#50
Originally Posted by billranton View Post

Code:
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-vodafone.png
You got that on contract? Damn, swiss people are getting all the love from Nokia these days. Had to buy mine from Austria, as not available here in Germany

Edit: Ok, I have the vodafone one, too :-P

Code:
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-aol-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-att.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-baidu.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-bing.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-caldav.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-dopplr.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-dropbox.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-exchange.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-facebook.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-firefox.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-flickr.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-gmail.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-google-calendar.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-google.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-gtalk.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-hotmail.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-icq.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-lastfm.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-mail-for-exchange.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-msn-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-msn.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-myspace.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-nfc.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-nokia-account.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-ovi-music.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-ovi.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-picasa.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-service-att.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-sip.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-skype.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-tippit.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-twitter.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-vodafone.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-yahoo-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-yandex.png
/usr/share/themes/blanco/meegotouch/icons/icon-m-service-youtube.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-aol-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-att.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-baidu.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-bing.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-caldav.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-dopplr.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-dropbox.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-exchange.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-facebook.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-firefox.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-flickr.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-gmail.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-google-calendar.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-google.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-gtalk.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-hotmail.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-icq.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-lastfm.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-mail-for-exchange.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-msn-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-msn.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-myspace.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-nfc.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-nokia-account.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-ovi-music.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-ovi.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-picasa.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-sip.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-skype.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-tippit.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-twitter.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-vodafone.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-yahoo-messenger.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-yandex.png
/usr/share/themes/blanco/meegotouch/icons/icon-s-service-youtube.png

Last edited by Niwakame; 2011-12-06 at 13:58.
 

The Following User Says Thank You to Niwakame For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 11:53.