[Konsole-devel] [Bug 281513] New: qdbus cannot get correct currentSession if 2 konsole windows is running via org.kde.konsole.Konsole.currentSession

Gris Ge cnfourt at gmail.com
Wed Sep 7 03:09:44 UTC 2011


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

           Summary: qdbus cannot get correct currentSession if 2 konsole
                    windows is running via
                    org.kde.konsole.Konsole.currentSession
           Product: konsole
           Version: 2.7
          Platform: Chakra
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel at kde.org
        ReportedBy: cnfourt at gmail.com


Version:           2.7 (using KDE 4.7.0) 
OS:                Linux

When we have 2+ konsole windows running, command:

qdbus org.kde.konsole /Konsole org.kde.konsole.Konsole.currentSession 

will get incorrect serssionID if execute in later opened konsole.

For example:
Windows 1 have session: 1 3 6 9
Windows 2 have session: 11

If execute command before in Windows 2 session 11, we got number 9.



Reproducible: Always

Steps to Reproduce:
1. Open 2 konsole windows with several tab (session)
2. Execute this command in later opened windows.
    qdbus org.kde.konsole /Konsole org.kde.konsole.Konsole.currentSession
3. Use this command to verify whether session id is correct:
==========
CURR_SE_ID=$(qdbus org.kde.konsole /Konsole \
    org.kde.konsole.Konsole.currentSession)
PRE_TAB_FORMAT="$(qdbus org.kde.konsole /Sessions/${CURR_SE_ID} \
    org.kde.konsole.Session.tabTitleFormat 0)"
qdbus org.kde.konsole /Sessions/${CURR_SE_ID} \
    org.kde.konsole.Session.setTabTitleFormat 0 "" 1>/dev/null
qdbus org.kde.konsole /Sessions/${CURR_SE_ID} \
    org.kde.konsole.Session.setTitle 0 "Changed Session" 1>/dev/null
qdbus org.kde.konsole /Sessions/${CURR_SE_ID} \
    org.kde.konsole.Session.setTitle 1 "Changed Session" 1>/dev/null
==========

Actual Results:  
Incorrect session number returned.
If using step above, one of window 1 session got changed tag text when execute
command in window 2.

Expected Results:  
org.kde.konsole.Konsole.currentSession should return correct sessionID

As qdbus is owned by qt. not sure whether this is kde bug or qt bug.

Let me know if I could investigate more.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list