← Back to team overview

touch-packages team mailing list archive

[Bug 1469819] Re: Ubuntu SDK fails to work when a dbus session is not present.

 

QtUbuntu only tries to connect to dbus when app requests contents of the
clipboard for the first time, and not at startup.

Testing a simple QML file with qtubuntu, it works fine without a dbus
service running.


If application does this at startup, qtubuntu may be a source of a
crash, quoting the relevant code:

void UbuntuClipboard::setupDBus()
{
    QDBusConnection dbusConnection = QDBusConnection::sessionBus();

    bool ok = dbusConnection.connect(
            "com.canonical.QtMir",
            "/com/canonical/QtMir/Clipboard",
            "com.canonical.QtMir.Clipboard",
            "ContentsChanged",
            this, SLOT(updateMimeData(QByteArray)));
    if (!ok) {
        qCritical("UbuntuClipboard - Failed to connect to ContentsChanged signal form the D-Bus system clipboard.");
    }

    mDBusClipboard = new QDBusInterface("com.canonical.QtMir",
            "/com/canonical/QtMir/Clipboard",
            "com.canonical.QtMir.Clipboard",
            dbusConnection);

    mDBusSetupDone = true;
}

Will consider that as an enhancement.

** Changed in: qtubuntu
   Importance: Undecided => Low

** Changed in: qtubuntu (Ubuntu)
   Importance: Undecided => Low

** Changed in: qtubuntu
       Status: New => Triaged

** Changed in: qtubuntu (Ubuntu)
       Status: New => Triaged

** Changed in: qtubuntu
   Importance: Low => Wishlist

** Changed in: qtubuntu (Ubuntu)
   Importance: Low => Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtubuntu in Ubuntu.
https://bugs.launchpad.net/bugs/1469819

Title:
  Ubuntu SDK fails to work when a dbus session is not present.

Status in QT Ubuntu:
  Triaged
Status in qtubuntu package in Ubuntu:
  Triaged
Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  When attempting to run the Ubuntu SDK when there is no dbus session
  daemon running causes the SDK to fail. The first assumption seems to
  be in the clipboard.

  With no dbus-session:
  http://paste.ubuntu.com/11794311/

  With a dbus-session:
  http://paste.ubuntu.com/11794350/

  Which then yields:
  http://i.imgur.com/wU8NLdm.png

  The QML:
  http://paste.ubuntu.com/11794368/

To manage notifications about this bug go to:
https://bugs.launchpad.net/qtubuntu/+bug/1469819/+subscriptions


References