diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-06-20 15:12:48 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-06-20 19:45:03 +0000 |
commit | 4f1053c5464de12b635a8cf4128b78d51f6f3deb (patch) | |
tree | ad6f1008934c656ab10c57ed9bb1884453ca59f0 /wireshark-qt.cpp | |
parent | c919c625025afdca318a1a3413b268d00ad1985c (diff) |
Qt: Create the user profiles dir at startup
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 <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wireshark-qt.cpp')
-rw-r--r-- | wireshark-qt.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |