[Bug 307577] New: Facebook contacts can't be preselected

Dan Vrátil dvratil at redhat.com
Sat Sep 29 16:33:39 BST 2012


https://bugs.kde.org/show_bug.cgi?id=307577

            Bug ID: 307577
          Severity: normal
           Version: unspecified
          Priority: NOR
          Assignee: kde-telepathy-bugs at kde.org
           Summary: Facebook contacts can't be preselected
    Classification: Unclassified
                OS: Linux
          Reporter: dvratil at redhat.com
          Hardware: Other
            Status: NEW
         Component: log-viewer
           Product: telepathy

Facebook contacts can't be preselected in logviewer, because their UID (or at
least of some of them) starts with "-", so the command to invoke ktp-log-viewer
with such contact preselected looks like
ktp-log-viewer gabble/jabber/some.user_40chat_2efacebook_2ecom0/
-0123456789 at chat.facebook.com

This obviously does not work because KCmdLineArgs interprets the contact UID as
a switch and fails with "Unknown option '0123456789 at chat.facebook.com'."





Reproducible: Always

Steps to Reproduce:
1. chat with some Facebook contact
2. click "Previous Converstions" in textui

Actual Results:  
Nothing happens

Expected Results:  
Logviewer is opened and the contact is correctly preselected

I suggest changing the ktp-log-viewer command line syntax to

ktp-logviewer accountID,contactID

e.g. passing accountID and contactID as a single argument and separate them
just by comma for easier parsing. This assumes comma is not an allowed
character within accountID and contactID, which I believe is a safe assumption.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list