aboutsummaryrefslogtreecommitdiffstats
path: root/globals.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2006-02-12 03:15:29 +0000
committerGuy Harris <guy@alum.mit.edu>2006-02-12 03:15:29 +0000
commitb8136fbfa9ba5cafbd7182f82b58759ee14a6555 (patch)
treef9d78126da180e876f8d40f12089268530ce1aca /globals.h
parent9bc8780a661260a2446f556914cced07644999b9 (diff)
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
Diffstat (limited to 'globals.h')
-rw-r--r--globals.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/globals.h b/globals.h
index dabc2ae..196afd2 100644
--- a/globals.h
+++ b/globals.h
@@ -29,7 +29,6 @@
#include <epan/timestamp.h>
extern capture_file cfile;
-extern gchar *ethereal_path;
#ifdef HAVE_LIBPCAP
/** @todo move this to the gtk dir */
extern gboolean auto_scroll_live;