Bug 318178

Summary: Ktp does not connect automatically at startup anymore
Product: [Unmaintained] telepathy Reporter: Thomas Pfeiffer <thomas.pfeiffer>
Component: generalAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ddomenichelli, kde, mklapetek
Priority: NOR    
Version: 0.6.0   
Target Milestone: Future   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Pfeiffer 2013-04-11 07:57:28 UTC
Since the upgrade to KTp 0.6.0, auto connect does not work anymore for me. I have "Restore last presence on login" enabled. When I log in, the presence applet shows the icon for the last status, but it does not actually connect until I manually change the status.
When I open the contact list application, it shows status "offline". I do not start the contact list application on startup, but I use the presence applet and contact list applets.

Reproducible: Always

Steps to Reproduce:
1. Check "Restore last presence on login" in settings
2. Choose a status other than "offline"
3. Log out
4. Log in

Actual Results:  
Presence applet shows last status, but contact list applet is empty and contact list application shows "offline".

Expected Results:  
Last status is actually re-established.
Comment 1 David Edmundson 2013-04-11 13:56:58 UTC
Could you run "mc-tool dump" just after you next login please.
Comment 2 Thomas Pfeiffer 2013-04-12 17:33:16 UTC
Here is the output of mc-tool dump right after login (while still offline but with online icon, with privacy-relevant bits replaced). Hope it helps.

    Account: haze/icq/_3[UIN]
Display Name: [UIN]
  Normalized: [UIN]
     Enabled: enabled
        Icon: im-icq
    Connects: automatically
    Nickname: Rabbit
     Service: haze-icq

Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: available (2) ""
    Changing: yes

      (string) account = [UIN]

------------------------------------------------------------

     Account: gabble/jabber/[gmail address with special chars replaced by numbers]
Display Name: [gmail address]
  Normalized: [gmail address]
     Enabled: enabled
        Icon: im-jabber
    Connects: automatically
    Nickname: Thomas Pfeiffer
     Service: google-talk

Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: available (2) ""
    Changing: yes

      (string) fallback-conference-server = conference.jabber.org
        (bool) old-ssl = true
      (string) server = talk.google.com
        (uint) port = 5223
      (string) account = [gmail address]
                                                                                                                                                              
------------------------------------------------------------                                                                                                  
                                                                                                                                                              
     Account: gabble/jabber/[jabber address with special chars replaced by numbers]                                                                                                     
Display Name: [jabber address]                                                                                                                           
  Normalized: [jabber address]                                                                                                                           
     Enabled: enabled                                                                                                                                         
        Icon: im-jabber                                                                                                                                       
    Connects: automatically                                                                                                                                   
    Nickname: Colomar                                                                                                                                         
     Service: jabber                                                                                                                                          
                                                                                                                                                              
Presences:                                                                                                                                                    
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: available (2) ""
    Changing: yes

       (GStrv) fallback-socks5-proxies = [""]
      (string) resource = kde-telepathy
      (string) account = [jabber address]
Comment 3 David Edmundson 2013-04-12 17:52:43 UTC
Next question, do you use network manager?
Comment 4 Thomas Pfeiffer 2013-04-12 17:54:06 UTC
Yes, I do. Version 0.9.8.0.
Comment 5 Daniele E. Domenichelli 2013-04-16 22:12:52 UTC
Perhaps is it a duplicate of https://bugs.kde.org/show_bug.cgi?id=300062 ?
Comment 6 Martin Klapetek 2013-04-17 07:49:29 UTC
For the record - in master there is simply setRequestedPresence(..) on all accounts while in 0.6 it does setAutomaticPresence(..). I think backporting this from master might be worth as well as that will connect the accounts as soon as it has ready account manager.
Comment 7 Thomas Pfeiffer 2013-04-17 17:07:40 UTC
They might be related, but definitely not duplicates. The symptoms are very different. In this case, I don't get asked for the password(s), but it silently does not connect.
Comment 8 Thomas Pfeiffer 2013-05-24 17:51:37 UTC
I can now definitely confirm that this only happens if I wait to long to enter the KWallet password. However, I do not get an error message, but just the "available" while remaining offline (even after KWallet has been opened by another application).
This should be easy to reproduce with a password-protected KWallet.
Comment 9 David Edmundson 2013-05-24 17:52:46 UTC
Awesome, thanks for the update
Comment 10 Daniele E. Domenichelli 2013-05-25 13:55:54 UTC

*** This bug has been marked as a duplicate of bug 300062 ***