Announcement

Collapse
No announcement yet.

KGpg and the QDBusService error

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    KGpg and the QDBusService error

    Last week I installed KGpg and created a 4096 RSA key (took about 25 minutes!). I added my key to KMail and it works great with KMail.
    Rog131 gave a great intro to KGpg in an answer to a previous question.

    The problem is that this afternoon when I attempted to start KGpg in my home account it refused to start and it would not appear in the system tray.
    When I tried to run it from a Konsole it left the following message:
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    I am running the following dbus services:
    :~$ systemctl | grep dbus
    dbus.service loaded active running D-Bus System Message Bus
    dbus.socket loaded active running D-Bus System Message Bus Socket
    j:~$
    I consulted the launchpad and noticed that this bug has been around for over FOUR years, and in just about EVERY major distro, including KDE Neon! It is NOT just a Kubuntu issue. From all appearances it appears to be buried deep in the bowls of the QT API QDBusService module. One launchpad moderator called the bug "harmless" but if one does not know what causes the bug that pronouncement is premature, to say the least.

    You can get it to run from the Konsole by issuing
    kgpg &2> /dev/null

    It will not automatically appear on the system tray unless, while it is running, you open the System Tray Settings command and switch the KGpg Icon setting from auto to show. Unfortunately the golden color of the lock icon becomes a the matte gray flat outline. If you run kate with
    kdesudo kate
    and navigate to and open
    /usr/share/applicatioons/kde4/kgpg.desktop
    you can append "&2> /dev/null" to the end of the execute command and save the file.

    Using "&2> /dev/null" to block error flags returned to the environment isn't a good way to fix bugs, but unless this nasty bug is fixed this is the only way I've found that we presently have. It is a bug that affect many KDE applications: Dolphin, Kate, KWrite, KGpg and a host of others, but not all at the same time or on the same installation.
    Last edited by GreyGeek; Jul 16, 2016, 03:25 PM.
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    #2
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    This is very common, I see it a lot. Thanks for finding out something about it, I'd often wondered.
    Regards, John Little

    Comment


      #3
      dbus is pretty far from my strong suit but you can set dbus behavior in the .desktop file or if you don't want to edit a text file, right-click the application icon and do Properties --> Application --> Advanced

      Not sure it'll fix but it's worth a shot
      we see things not as they are, but as we are.
      -- anais nin

      Comment

      Working...
      X