From b8136fbfa9ba5cafbd7182f82b58759ee14a6555 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 12 Feb 2006 03:15:29 +0000 Subject: Add a routine to attempt to get the absolute pathname of the executable file, strip off the last component to get the pathname of the directory containing the executable file, and save it for future use. On Windows, you can get that from the OS, but, on UN*X, you have to look at argv[0] and derive the absolute path from that (argv[0] is not guaranteed to be an absolute path, or even a path at all). (In addition, if you're running from the build directory, you might have to strip off a ".libs/" added to argv[0] as an artifact of the libtoolizing script.) Use that in the About dialog, and use it to construct the path of dumpcap. Don't put quotes into the path of dumpcap; you don't have to quote strings with spaces in them when handing them to execvp and, in fact, you *mustn't* quote them, as the quotes will be treated as part of the pathname. svn path=/trunk/; revision=17267 --- globals.h | 1 - 1 file changed, 1 deletion(-) (limited to 'globals.h') diff --git a/globals.h b/globals.h index dabc2ae263..196afd28d5 100644 --- a/globals.h +++ b/globals.h @@ -29,7 +29,6 @@ #include extern capture_file cfile; -extern gchar *ethereal_path; #ifdef HAVE_LIBPCAP /** @todo move this to the gtk dir */ extern gboolean auto_scroll_live; -- cgit v1.2.3