Wireshark-dev: Re: [Wireshark-dev] MIB path not saved with preferences
From: Andrew Hood <ajhood@xxxxxxxxx>
Date: Thu, 27 Mar 2008 08:19:36 +1100
Jaap Keuter wrote:
> Hi,
> 
> Ah, it's the big Save/Apply/Ok/Cancel confusion. I would recommend you to
> go to Preferences|User Interface and uncheck the last box in the list
> which states "Settings dialogs show a save button".

That didn't answer the question. If Save *is* displayed, and you click
it, does it immediately write all preferences to disk? If Save *is not*
displayed, which of Apply or OK immediately writes all preferences to disk?

> With regards to the files being/not being in ~/.wireshark: normally the
> system wide files are used as they are installed. Once you make a change
> to one of the UATs the corresponding file is saved in ~/.wireshark. So
> adding a module results in ~/.wireshark/smi_modules, while adding a path
> results in ~/.wireshark/smi_paths.

That I have no problem with. What I was seeing was that even after I had
added paths and/or modules it still was not saving them in ~/.wireshark.
Once the files existed it would modify them.

> 
> Thanx,
> Jaap
> 
> 
> 
>>Jaap Keuter wrote:
>>
>>>Hi,
>>>
>>>This information is stored in ~/.wireshark/smi_paths and
>>>~/.wireshark/smi_modules
>>>
>>>Thanx,
>>>Jaap
>>
>>I'd love to believe you but there was no ~/.wireshark/smi_paths for my
>>userid.
>>
>>: ls ~/.wireshark/
>>preferences  recent  smi_modules
>>
>>I eventually gave up and touched ~/.wireshark/smi_paths and then through
>>some magic incantation of "Save", "Apply" and "OK" button presses it was
>>happy to add lines to it.
>>
>>I tried it again as root with neither ~/.wireshark/smi_paths nor
>>~/.wireshark/smi_modules
>>
>>Eventually through some combination of button presses, which I didn't
>>record, it created ~/.wireshark/smi_paths but not
>>~/.wireshark/smi_modules (probably the wrong incantation). So I copied
>>the default file there and I can add MIBs to it.
>>
>>What is the "correct" sequence of "Save", "Apply" and "OK" to get
>>preferences saved? I would expect "Save" would be enough if that button
>>is displayed. Which one of "Apply" and OK" saves if the "Save" button is
>>hidden.
>>
>>If you follow "Save" with one or more of "Apply" or "OK" does that stop
>>the prefs being saved? Do you have to exit the dialog with "Cancel"? The
>>principle of least surprise would suggest "Save" should be committed
>>immediately.
>>
>>
>>>Andrew Hood wrote:
>>>
>>>
>>>>Seen in Wireshark HEAD at 24705, but I've observed it before and
>>>>expected it to have been picked up.
>>>>
>>>>If you add additional paths for MIBs in the preferences dialog they
>>>>don't get saved in your prefernces.
>>>>
>>>>Or is this only happening because I have a full copy of libsmi and it is
>>>>expecting to only use libsmi's path, or libsmi's path as modified by my
>>>>~/.smirc?
>>>>
> 
> 
> 
> 
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev


-- 
There's no point in being grown up if you can't be childish sometimes.
                -- Dr. Who