Merge pull request #90 from knocte/embedded
gtk: fix Application to be more robust when embedding mono
This commit is contained in:
commit
d6f06860fb
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ namespace Gtk {
|
|||
|
||||
static void SetPrgname ()
|
||||
{
|
||||
GLib.Global.ProgramName = System.IO.Path.GetFileNameWithoutExtension (Environment.GetCommandLineArgs () [0]);
|
||||
var args = Environment.GetCommandLineArgs ();
|
||||
if (args != null && args.Length > 0)
|
||||
GLib.Global.ProgramName = System.IO.Path.GetFileNameWithoutExtension (args [0]);
|
||||
}
|
||||
|
||||
public static void Init ()
|
||||
|
|
Loading…
Add table
Reference in a new issue