Wireshark-bugs: [Wireshark-bugs] [Bug 1237] Add option to save files in CWD

Date: Mon, 8 Oct 2012 08:09:04 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1237

--- Comment #5 from Chris Maynard <christopher.maynard@xxxxxxxxx> 2012-10-08 08:09:03 PDT ---
(In reply to comment #4)
> Specifying "." as the directory to always start in: what a great idea, I never
> thought of using that as a workaround!
> 
> Unfortunately it does not work for me. It seems to accept only absolute paths:
> 
> (lt-wireshark:7230): Gtk-CRITICAL **: gtk_file_system_unix_get_folder:
> assertion `g_path_is_absolute (filename)' failed
> 
> This is with Wireshark svn version 27212 and GTK 2.8

I tried this with the latest svn version 45386, and .\ seems to work ... well,
sort of.  If I configure Wireshark to Always start in .\ then:

mkdir test1
cd test1
<path/to/>wireshark

<Open or Save a file in this directory>

If I try to open a capture file, the test1 directory is accessed as expected,
but if I capture some packets and try to save a new capture file, the previous
directory is accessed, not the test1 directory.  Continuing ...

<Now quit wireshark>

cd ..
mkdir test2
cd test2
<path/to/>wireshark

<Select File/Open>

As before, attempting to open a capture file brings up the test2 directory as
expected, but if I capture packets and try to save a new capture file, the
previous directory, in this case, test1, is opened.

Another observation: File->Open does not seem to work as expected if the
current directory contains spaces, for example, C:\Documents and Settings.

For reference, my build information:

Version 1.9.0 (SVN Rev 45386 from /trunk)

Compiled (64-bit) with GTK+ 2.24.10, with Cairo 1.10.2, with Pango 1.30.0, with
GLib 2.32.2, with WinPcap (4_1_2), with libz 1.2.5, without POSIX capabilities,
without libnl, with SMI 0.4.8, with c-ares 1.7.1, with Lua 5.1, without Python,
with GnuTLS 2.12.18, with Gcrypt 1.4.6, without Kerberos, with GeoIP, with
PortAudio V19-devel (built Sep 23 2012), with AirPcap.

Running on 64-bit Windows 7 Service Pack 1, build 7601, with WinPcap version
4.1.2 (packet.dll version 4.1.0.2001), based on libpcap version 1.0 branch
1_0_rel0b (20091008), GnuTLS 2.12.18, Gcrypt 1.4.6, without AirPcap.

Built using Microsoft Visual C++ 10.0 build 30319

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.