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>
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.

1 participant