summaryrefslogtreecommitdiff
path: root/epan/filesystem.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-10-17 18:10:16 +0000
committerGuy Harris <guy@alum.mit.edu>2012-10-17 18:10:16 +0000
commit016a518728a09941d15b3cc930ea7a0cff969881 (patch)
treefc4c13532034e7af661ea21b47da58c6f28541d5 /epan/filesystem.c
parente2956a39a21356f0004c27c0e2b4e058f8ff3e17 (diff)
downloadwireshark-016a518728a09941d15b3cc930ea7a0cff969881.tar.gz
"Wireshark", in this context, mainly means "libwireshark"; preferences
should be shared by TShark and Wireshark, so the preference directory path should be independent of the program name. Program-specific or GUI-toolkit-specific preferences should be kept in separate files, or ignored but preserved by programs to which they don't apply. svn path=/trunk/; revision=45618
Diffstat (limited to 'epan/filesystem.c')
-rw-r--r--epan/filesystem.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/epan/filesystem.c b/epan/filesystem.c
index 8b88820675..fbb7bd0c24 100644
--- a/epan/filesystem.c
+++ b/epan/filesystem.c
@@ -1018,15 +1018,8 @@ get_persconffile_dir_no_profile(void)
/*
* Concatenate %APPDATA% with "\Wireshark".
*/
- gchar *program_name, *dotp;
-
- program_name = g_strdup(g_get_prgname());
- dotp = strchr(program_name, '.');
- *dotp = '\0';
-
persconffile_dir = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s",
- appdatadir, program_name);
- g_free(program_name);
+ appdatadir, PF_DIR);
} else {
/*
* OK, %APPDATA% wasn't set, so use