On 06-11-17 09:02, Russel Winder wrote:

Has anyone any experience of, or better yet have examples of, using addOnHandleLocalOptions and addOnCommandLine to do command line processing for a GtkD application using Gtk.Application?

(I believe the GtkD demos directory is, sadly, lacking in any examples of doing this sort of thing.)

(Yes I know GTK+ applications are supposed to launch without any command line processing, and indeed Rust has failed to provide access to these methods, but OpenGL with some hardware requires a non-default choice at launch time.)

The only one i know of is tilix:

https://github.com/gnunn1/tilix/blob/master/source/gx/tilix/application.d#L381