mono / gtk-sharp

Gtk# is a Mono/.NET binding to the cross platform Gtk+ GUI toolkit and the foundation of most GUI apps built with Mono
http://www.mono-project.com/GtkSharp
Other
426 stars 141 forks source link

Environment variable conflict with GTK+ #225

Open Yousha opened 6 years ago

Yousha commented 6 years ago

GTK# environment variable conflicts with GTK+ environment variable... since both uses same variable name:

GTKDIR / GTK_BASEPATH ...

So I think GTK# must uses different name. Because many users like me installed both GTKs on one machine _Something like GTKNET_DIR or GTKNETBASEPATH would be great

meebey commented 6 years ago

I had a similar issue with the GTK+ runtime used by other Windows applications (say Pidgin). The workaround I used in Smuxi was to detect the location of the GTK# installation and then override the environment variables to prefer that GTK+ runtime libraries (of the GTK# install) over the default one. The default depends on the order which was installed first, GTK+ and then GTK# or the other way around.

In either case you can see that GTK+ runtime override in Smuxi here: https://github.com/meebey/smuxi/blob/master/src/Frontend-GNOME/Frontend.cs#L1180