Closed doivosevic closed 4 years ago
Can you provide a minimal, runnable testcase for reproducing this?
Ok. So I've found the issue. The problem was the demo code I linked was reading from args and passing it into application which I overlooked so when my app was taking in some command line arguments they were passed down into gtk application and hence the error. Passing an empty vec here fixes my problem
`application.run(&args().collect::<Vec<_>>());`
I should have read the code more carefully
So if I run the application from the same package everything works fine, but if I depend on the package from another and invoke the run method from it I get the fail.
(xxx.exe:6808): GLib-GIO-CRITICAL **: 20:28:34.488: This application can not open files.
The code is pretty much identical to https://github.com/38/plotters/blob/ebc23079e66822d696f5772cc95ab5586a8c0766/examples/gtk-demo/src/main.rs