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

GTK complains about command-line arguments #307

Closed
Endilll opened this issue Jul 13, 2022 · 0 comments
Closed

GTK complains about command-line arguments #307

Endilll opened this issue Jul 13, 2022 · 0 comments
Assignees

Comments

@Endilll
Copy link

Endilll commented Jul 13, 2022

If you try to launch any of the examples from master branch with additional command-line argument, GTK complains and closes the application:

$ ./examples/empty/EmptyStarter .

(EmptyStarter:29297): GLib-GIO-CRITICAL **: 20:49:57.956: This application can not open files.

(EmptyStarter:29297): GLib-GObject-CRITICAL **: 20:49:57.958: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

Passing 1 instead of argc to app constructor works around that, but it doesn't feel too good.
I also tried patching elements, replacing G_APPLICATION_FLAGS_NONE with G_APPLICATION_HANDLES_OPEN and G_APPLICATION_HANDLES_COMMAND_LINE, but it appears to be just another can with worms, with GTK complaining about missing handlers.

@djowel djowel self-assigned this Mar 30, 2024
djowel added a commit that referenced this issue Mar 30, 2024
@djowel djowel closed this as completed in 446c9e4 Mar 30, 2024
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

No branches or pull requests

2 participants