Hi,
On 31/08/2012 13:19, Johan Vromans wrote:
> Not surprisingly this version still shows the file dialog problems we
> discussed recently.
>
> Mark could you please check: In the file dialog(Wx::FileDialog) that
> selecs the Perl to use, do you use GetPath to obtain the result, or do
> you use GetFilename and GetDirectory instead?
>
> The problem is that GetDirectory seems to return the default directory
> (i.e., the one passed to to the dialog) instead of the actual directory
> of the selected file. In other words: GetPath() is not equal to
> GetDirectory() . "/" . GetFilename().
I'm using GetDirectory so that probably explains the problem. Looking at
the trac ticket you mentioned this does seem to be a wxWidgets +
gtk-2.24.11 problem.
For some reason I recalled (incorrectly) that your issue was on Fedora
17 32 bit so tested on that - where things seemed OK.
I'm building a Fedora 17 x86_64 VM now and will figure out a workaround
for both Wx::FileDialog and Wx::DirDialog. I'll post solution to wxPerl
list + Wx wiki in addition to incorporating in a quick Cava re-release
for Linux.
It looks like a simple change to ->GetPath will do the trick, but I'll
need to test on all platforms before releasing again.
Cheers
Mark