flathub / org.kde.kleopatra

https://flathub.org/apps/details/org.kde.kleopatra
1 stars 3 forks source link

Unable to launch Kleopatra "Couldn't register name" #34

Closed haecker-felix closed 1 year ago

haecker-felix commented 1 year ago
[haecker-felix@t14s ~]$ flatpak run org.kde.kleopatra 
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.qgnomeplatform: Could not find color scheme  ""
kf.dbusaddons: Couldn't register name 'local.kleopatra' with DBUS - another process owns it already!
[haecker-felix@t14s ~]$ flatpak info org.kde.kleopatra

Kleopatra - Certificate Manager and Unified Crypto GUI

          ID: org.kde.kleopatra
         Ref: app/org.kde.kleopatra/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 3.1.26.230401
     License: GPL-2.0+
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 169,3 MB
     Runtime: org.kde.Platform/x86_64/5.15-22.08
         Sdk: org.kde.Sdk/x86_64/5.15-22.08

      Commit: 96d94038f6b9ef8c0f701ebb34851acbe2d94181eaae0b58c2378700e1180382
      Parent: 12cd422cb1ae628d2b7df90299129a49cae2e99f2492d36c242612e8aaf65ade
     Subject: Update 4 modules (7f22d335)
        Date: 2023-05-12 11:39:21 +0000

Enabling "dbus-session bus" permission works as workaround: image

Erick555 commented 1 year ago

Are you sure it wasn't run already, i.e. minimized in systray?

travier commented 1 year ago

I can reproduce that (fresh installation, first run):

QIBusPlatformInputContext: invalid portal bus.
QSocketNotifier: Can only be used with threads started with QThread
libEGL warning: wayland-egl: could not open /dev/dri/renderD128 (No such file or directory)
kf.dbusaddons: Couldn't register name 'local.kleopatra' with DBUS - another process owns it already!
travier commented 1 year ago

The following is enough, but it's weird:

flatpak run --device=dri --own-name=local.kleopatra org.kde.kleopatra
travier commented 1 year ago

From https://docs.flatpak.org/en/latest/sandbox-permissions.html:

Limited access to the session D-Bus instance - an app can only own its own name on the bus.

So this is a bug somewhere in Kleopatra or the frameworks.

travier commented 1 year ago

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

travier commented 1 year ago

Fix in https://github.com/flathub/org.kde.kleopatra/pull/36