Ask Your Question

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

asked 2019-10-07 09:00:55 +0000

HeyEddie gravatar image

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?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2019-10-07 14:25:32 +0000

cmaynard gravatar image

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.


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.
edit flag offensive delete link more


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 gravatar imageHeyEddie ( 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 gravatar imagecmaynard ( 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

SYN-bit gravatar imageSYN-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 gravatar imageHeyEddie ( 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 gravatar imagecmaynard ( 2019-10-15 13:57:12 +0000 )edit

answered 2019-10-07 09:39:28 +0000

SYN-bit gravatar image

updated 2019-10-07 14:26:13 +0000

cmaynard gravatar image

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

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2019-10-07 09:00:55 +0000

Seen: 1,442 times

Last updated: Oct 08 '19