ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] How can you determine the current working directory????

From: Alex Lindberg <alindber@xxxxxxxxxxxxx>
Date: Tue, 13 Nov 2007 13:47:24 -0600
I would like to determine the current working
directory from addr_resolv.c.

I have tried various functions from filesystem.c/h
without any luck.

As an example get_persdatafile_dir() in addr_resolv.c
returns an empty string.

I have also tried to use get_last_open_dir() from
gtk/file_dlg.c.  By including <gtk/gtk.h> and
<gtk/file_dlg.h> it would compile but it would not
link.

There must be an easer way.

Any ideas?