[GH-ISSUE #5474] gedit: failed to start while using ibus and dbproxy: "Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown" (dbus) #3007

Closed
opened 2026-05-05 09:39:41 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @wellcomez on GitHub (Nov 15, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5474

Description

As I know both ibus and firejail have used ibus.portal to support IME for multi-language.
I make sure both ibus and firejail version is right.
After I tried firefox, chrome, input method work well.
But while I try gedit, after this error appears, gedit will exit:

Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown

Steps to Reproduce

No profile:

firejail --name=a --debug --allusers --env=GTK_IM_MODULE=ibus \
  --dbus-user=filter --dbus-user.talk=org.freedesktop.portal.IBus \
  --env=IBUS_USE_PORTAL=1 --noprofile gedit 

With profile:

firejail --name=a --debug --allusers --env=GTK_IM_MODULE=ibus \
  --dbus-user=filter --dbus-user.talk=org.freedesktop.portal.IBus
  --env=IBUS_USE_PORTAL=1 - gedit 

Expected behavior

gedit can be started and ime works well

Actual behavior

gedit will exit during starup

Behavior without a profile

firejail --name=a --debug --allusers --env=GTK_IM_MODULE=ibus \
  --dbus-user=filter --dbus-user.talk=org.freedesktop.portal.IBus
  --env=IBUS_USE_PORTAL=1 --noprofile gedit

Environment

  • Ubuntu 20.04
  • Firejail 0.9.64.5

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Running 'gedit'  command through /usr/bin/zsh
execvp argument 0: /usr/bin/zsh
execvp argument 1: -c
execvp argument 2: 'gedit' 
C1: -> org.freedesktop.DBus call org.freedesktop.DBus.Hello at /org/freedesktop/DBus
C2: -> org.freedesktop.DBus fake AddMatch for org.freedesktop.portal.IBus
C3: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.IBus
B1: <- org.freedesktop.DBus return from C1
B2: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameAcquired at /org/freedesktop/DBus
B3: <- org.freedesktop.DBus return from C2
*SKIPPED*
B4: <- org.freedesktop.DBus return from C3
*SKIPPED*
C4: -> org.freedesktop.DBus call org.freedesktop.DBus.RequestName at /org/freedesktop/DBus
Filtering message due to arg0 org.gnome.gedit, policy: 0 (required 3)
*HIDDEN* (ping)
B5: <- (no sender) return from C4
*REWRITTEN*
Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
Originally created by @wellcomez on GitHub (Nov 15, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5474 ### Description As I know both ibus and firejail have used ibus.portal to support IME for multi-language. I make sure both ibus and firejail version is right. After I tried firefox, chrome, input method work well. But while I try `gedit`, after this error appears, gedit will exit: > Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown ### Steps to Reproduce No profile: ```sh firejail --name=a --debug --allusers --env=GTK_IM_MODULE=ibus \ --dbus-user=filter --dbus-user.talk=org.freedesktop.portal.IBus \ --env=IBUS_USE_PORTAL=1 --noprofile gedit ``` With profile: ```sh firejail --name=a --debug --allusers --env=GTK_IM_MODULE=ibus \ --dbus-user=filter --dbus-user.talk=org.freedesktop.portal.IBus --env=IBUS_USE_PORTAL=1 - gedit ``` ### Expected behavior gedit can be started and ime works well ### Actual behavior gedit will exit during starup ### Behavior without a profile ```sh firejail --name=a --debug --allusers --env=GTK_IM_MODULE=ibus \ --dbus-user=filter --dbus-user.talk=org.freedesktop.portal.IBus --env=IBUS_USE_PORTAL=1 --noprofile gedit ``` ### Environment - Ubuntu 20.04 - Firejail 0.9.64.5 ### Checklist - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [ ] I can reproduce the issue without custom modifications (e.g. globals.local). - [ ] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [ ] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [ ] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [ ] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log ~~~ Running 'gedit' command through /usr/bin/zsh execvp argument 0: /usr/bin/zsh execvp argument 1: -c execvp argument 2: 'gedit' C1: -> org.freedesktop.DBus call org.freedesktop.DBus.Hello at /org/freedesktop/DBus C2: -> org.freedesktop.DBus fake AddMatch for org.freedesktop.portal.IBus C3: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.IBus B1: <- org.freedesktop.DBus return from C1 B2: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameAcquired at /org/freedesktop/DBus B3: <- org.freedesktop.DBus return from C2 *SKIPPED* B4: <- org.freedesktop.DBus return from C3 *SKIPPED* C4: -> org.freedesktop.DBus call org.freedesktop.DBus.RequestName at /org/freedesktop/DBus Filtering message due to arg0 org.gnome.gedit, policy: 0 (required 3) *HIDDEN* (ping) B5: <- (no sender) return from C4 *REWRITTEN* Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown ~~~
gitea-mirror 2026-05-05 09:39:41 -06:00
  • closed this issue
  • added the
    notabug
    label
Author
Owner

@rusty-snake commented on GitHub (Nov 15, 2022):

  • I can reproduce the issue without custom modifications (e.g. globals.local).

The cause of your problem: ^^, your modifications => this isn't an issue, maybe a support request but that should be asked in Discussions.

C4: -> org.freedesktop.DBus call org.freedesktop.DBus.RequestName at /org/freedesktop/DBus
Filtering message due to arg0 org.gnome.gedit, policy: 0 (required 3)
HIDDEN (ping)
B5: <- (no sender) return from C4
REWRITTEN
Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown

So gedit fails after it tried to register org.gnome.gedit. Guess what you have to allow.

<!-- gh-comment-id:1315521048 --> @rusty-snake commented on GitHub (Nov 15, 2022): > - [ ] I can reproduce the issue without custom modifications (e.g. globals.local). The cause of your problem: ^^, your modifications => this isn't an issue, maybe a support request but that should be asked in Discussions. > C4: -> org.freedesktop.DBus call org.freedesktop.DBus.RequestName at /org/freedesktop/DBus Filtering message due to arg0 org.gnome.gedit, policy: 0 (required 3) *HIDDEN* (ping) B5: <- (no sender) return from C4 *REWRITTEN* Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown So gedit fails after it tried to register `org.gnome.gedit`. Guess what you have to allow.
Author
Owner

@wellcomez commented on GitHub (Nov 16, 2022):

org.gnome.gedit

which command argument should be used to bypass it?

<!-- gh-comment-id:1316228561 --> @wellcomez commented on GitHub (Nov 16, 2022): > org.gnome.gedit which command argument should be used to bypass it?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3007
No description provided.