Skip to content

Fix opening files via "Open with" (D-Bus activation) - #385

Open
bertyhell wants to merge 1 commit into
AlexanderVanhee:mainfrom
bertyhell:open-file-with-fix
Open

bertyhell wants to merge 1 commit into
AlexanderVanhee:mainfrom
bertyhell:open-file-with-fix

Conversation

@bertyhell

Copy link
Copy Markdown

PyGObject calls the GApplication open vfunc with (files, n_files, hint), but do_open only accepted (files, hint). Because the app is DBusActivatable, file managers deliver files through org.freedesktop.Application.Open, which raised a TypeError, so no window opened and the service exited after its idle timeout.

This fixes "open file with" on Ubuntu 26.04 with Gnome 50.1
image

Without this fix it would not open anything, and silently fail

Built and testen on my machinen and it works.

PyGObject calls the GApplication open vfunc with (files, n_files, hint),
but do_open only accepted (files, hint). Because the app is
DBusActivatable, file managers deliver files through
org.freedesktop.Application.Open, which raised a TypeError, so no window
opened and the service exited after its idle timeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dtw

dtw commented Oct 22, 2026 •

Copy link
Copy Markdown

Apparently this issue has surface because of the "GNOME 51 runtime update", if that helps with reproduction.

@dtw dtw left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also confirmed this issue. I don't know where the problem actual lies. Apparently, this PR will "workaround" the issue for now.

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 this pull request may close these issues.

2 participants