diff options
Diffstat (limited to 'gtk/main.c')
-rw-r--r-- | gtk/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/main.c b/gtk/main.c index 8232c497d3..e73704f7e5 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -174,7 +174,6 @@ static guint main_ctx, file_ctx, help_ctx; static guint packets_ctx; static gchar *packets_str = NULL; GString *comp_info_str, *runtime_info_str; -gchar *ethereal_path = NULL; gboolean have_capture_file = FALSE; /* XXX - is there an aquivalent in cfile? */ #ifdef _WIN32 @@ -1917,6 +1916,11 @@ main(int argc, char *argv[]) OPTSTRING_INIT OPTSTRING_WIN32; /* + * Attempt to get the pathname of the executable file. + */ + init_progfile_dir(argv[0]); + + /* * Get credential information for later use. */ get_credential_info(); @@ -2046,8 +2050,6 @@ main(int argc, char *argv[]) init_eth_clist_type(); #endif - ethereal_path = argv[0]; - /* Arrange that if we have no console window, and a GLib message logging routine is called to log a message, we pop up a console window. |