From 4f1053c5464de12b635a8cf4128b78d51f6f3deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Tue, 20 Jun 2017 15:12:48 -0400 Subject: Qt: Create the user profiles dir at startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure the user profiles directory is created at startup so that users can put downloaded profiles without creating the directory. Change-Id: Ib06bb3055daef8fd9e78d7887ce56f8fe50e48bf Reviewed-on: https://code.wireshark.org/review/22275 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- wireshark-qt.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wireshark-qt.cpp') diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp index b7426dd604..7e4d597c7a 100644 --- a/wireshark-qt.cpp +++ b/wireshark-qt.cpp @@ -473,6 +473,14 @@ int main(int argc, char *qt_argv[]) /* Assemble the run-time version information string */ runtime_info_str = get_runtime_version_info(get_wireshark_runtime_info); + /* Create the user profiles directory */ + if (create_profiles_dir(&rf_path) == -1) { + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, + "Could not create profiles directory\n\"%s\"", + rf_path); + g_free (rf_path); + } + profile_store_persconffiles(TRUE); /* Read the profile independent recent file. We have to do this here so we can */ -- cgit v1.2.3