First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Is there a way to change the default location of the personal config folder?

  • retag add tags

Is there a way to change the default location of the personal config folder?

I'd like to move my personal config folder to Dropbox (or, some other syncing location).

I don't see a a way to do this in Wireshark for Windows, or Mac.

Is this even possible? CanI move that folder anywhere I want and point Wireshark to it?

HeyEddie's avatar
3
HeyEddie
asked 2019-10-07 09:00:55 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

The easiest way is to create a folder in your dropbox folder (or any other folder on your system) and then symlink the wireshark configuration directory to that folder.

You might want to just do this for the profiles folder as some of the items in the normal configuration folder are somewhat system specific. I have the following on my Mac:

sake@MacSake:~/.config/wireshark$ ls -l profiles
lrwxr-xr-x  1 sake  staff  51 Jan 25  2017 profiles -> /Users/sake/Dropbox/sync/.config/wireshark/profiles
sake@MacSake:~/.config/wireshark$

In my sync folder on dropbox I keep a set of things I want to sync between systems, one of which is the wireshark profiles folder.

SYN-bit's avatar
18.5k
SYN-bit
answered 2019-10-07 09:39:28 +0000
cmaynard's avatar
11.1k
cmaynard
updated 2019-10-07 14:26:13 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

As documented in the ENVIRONMENT VARIABLES section of the Wireshark man page, you can override the default location of personal configuration files using the WIRESHARK_CONFIG_DIR environment variable. This method should work on all platforms.

WIRESHARK_CONFIG_DIR

This environment variable overrides the location of personal configuration files. It defaults to $XDG_CONFIG_HOME/wireshark (or $HOME/.wireshark if the former is missing while the latter exists). On Windows, %APPDATA%\Wireshark is used instead. Available since Wireshark 3.0.
cmaynard's avatar
11.1k
cmaynard
answered 2019-10-07 14:25:32 +0000
edit flag offensive 0 remove flag delete link

Comments

Thank you for responses!

! I have done the symlinks in the past, but for some reason, Dropbox os no longer recognizing/syncs them.

I was hoping there was another way to change the location like you can on many apps. Would be a better the solution, I thin, then symlinks.

HeyEddie's avatar HeyEddie (2019-10-08 08:12:25 +0000) edit

This comment belongs under Sake's answer, not mine, since he's the one who suggested using symlinks. Can you add your comment there and delete this one?

cmaynard's avatar cmaynard (2019-10-08 14:57:55 +0000) edit

I'll just respond here until the comment is moved, then I will move my comment too :-)

I think dropbox will not sync anything outside of the dropbox folder to which you have a link inside the dropbox folder. But having the data inside the dropbox folder and then symlink to it from the outside should work (as I am doing that).

And yes, it would be nice if this was a configurable item. You may want to submit an enhancement request on https://bugs.wireshark.org

SYN-bit's avatar SYN-bit (2019-10-08 22:14:35 +0000) edit

I apologize for my ignorance cmaynard, but I can't find WHERE to add that environment variable. Is it in the "preferences" file?

HeyEddie's avatar HeyEddie (2019-10-14 21:16:09 +0000) edit

I don't see a a way to do this in Wireshark for Windows, or Mac.

  • On Windows: Control Panel -> All Control Panel Items -> System -> Advanced system settings -> Environment Variables... -> New... -> Variable name: WIRESHARK_CONFIG_DIR, Variable value: TBD.

  • On Mac: I'm not a Mac user, but assuming it's similar enough to Linux and your shell is bash, edit .bash_profile to add the new assignment, i.e.: export WIRESHARK_CONFIG_DIR=/path/to/wireshark/config/dir

These methods will make the change permanent, but you could also wrap them in a batch file or shell script that first sets the environment variable and then calls Wireshark if you don't want to change the default configuration.

cmaynard's avatar cmaynard (2019-10-15 13:57:12 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer