Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
haecker-felix opened this issue May 24, 2023 · 6 comments · Fixed by #36
Closed

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

haecker-felix opened this issue May 24, 2023 · 6 comments · Fixed by #36

Comments

@haecker-felix
Copy link

[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
Copy link

Erick555 commented May 24, 2023

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

@travier
Copy link
Member

travier commented May 25, 2023

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
Copy link
Member

travier commented May 25, 2023

The following is enough, but it's weird:

flatpak run --device=dri --own-name=local.kleopatra org.kde.kleopatra

@travier
Copy link
Member

travier commented May 25, 2023

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
Copy link
Member

travier commented May 25, 2023

@travier
Copy link
Member

travier commented May 25, 2023

Fix in #36

kdesysadmin pushed a commit to KDE/kleopatra that referenced this issue May 30, 2023
The OrganizationDomain is used by KDBusAddons to generate the service
name used to register on the session bus so we need to set it up before
we try registering on the bus.

See: https://bugs.kde.org/show_bug.cgi?id=470246
See: flathub/org.kde.kleopatra#34

CCBUG: 470246
kdesysadmin pushed a commit to KDE/kleopatra that referenced this issue May 30, 2023
The OrganizationDomain is used by KDBusAddons to generate the service
name used to register on the session bus so we need to set it up before
we try registering on the bus.

See: https://bugs.kde.org/show_bug.cgi?id=470246
See: flathub/org.kde.kleopatra#34

CCBUG: 470246
(cherry picked from commit 66753b1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants