From 84aa0430416e8b1258b4a0d71cc21193c13f404a Mon Sep 17 00:00:00 2001 From: stig Date: Mon, 14 Jan 2008 16:40:23 +0000 Subject: This patch adds support for configuration profiles, which can be used to configure and use more than one set of preferences and configuration files. This can be found in the "Configuration Profiles..." menu item from the Edit menu, or by pressing Shift-Ctrl-A. It's also possible to start wireshark and tshark with a named profile by using the "-C ProfileName" option. A new status pane in the main window will show the current profile. The configuration files currently stored in the Profiles are: - Preferences - Capture Filters - Display Filters - Coloring Rules - Disabled Protocols - User Accessible Tables The recent data are by design not added to the profile. Planned future enhancements: - make a more convenient function to switch between profiles - add a "clone profile" button to copy an existing profile - make the profiles list active and accept return as OK - save users "Decode as" in the profile - make new, clone and deletion of profiles more secure - make some of the recent values available in the profile This patch also fixes: - setting default status pane sizes - a bug setting status pane for packets when not having main lower pane. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24089 f5534014-38df-0310-8fa8-9805f1628bb7 --- disabled_protos.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'disabled_protos.c') diff --git a/disabled_protos.c b/disabled_protos.c index 8c08ea3714..7fd7775b5a 100644 --- a/disabled_protos.c +++ b/disabled_protos.c @@ -108,7 +108,7 @@ read_disabled_protos_list(char **gpath_return, int *gopen_errno_return, } /* Construct the pathname of the user's disabled protocols file. */ - ff_path = get_persconffile_path(PROTOCOLS_FILE_NAME, FALSE); + ff_path = get_persconffile_path(PROTOCOLS_FILE_NAME, TRUE, FALSE); /* Read the user's disabled protocols file, if it exists. */ *path_return = NULL; @@ -319,7 +319,6 @@ void save_disabled_protos_list(char **pref_path_return, int *errno_return) { gchar *ff_path, *ff_path_new; - const gchar *ff_name; FILE *ff; gint i; protocol_t *protocol; @@ -327,9 +326,7 @@ save_disabled_protos_list(char **pref_path_return, int *errno_return) *pref_path_return = NULL; /* assume no error */ - ff_name = PROTOCOLS_FILE_NAME; - - ff_path = get_persconffile_path(ff_name, TRUE); + ff_path = get_persconffile_path(PROTOCOLS_FILE_NAME, TRUE, TRUE); /* Write to "XXX.new", and rename if that succeeds. That means we don't trash the file if we fail to write it out -- cgit v1.2.3