Re: Weird GTK+ open directory chooser dialog behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 21 November 2012 14:09, Robbie Smith <zoqaeski@xxxxxxxxx> wrote:
> I don’t recall when this started occurring (as most applications that open
> files open them one at a time so I seldom come across it), but the directory
> selection dialog seems to always open my home directory regardless of what I
> navigate to. The programs that spawn the dialog subsequently crash, as
> they’re trying to open *every file in my home directory* instead of a
> specific directory. Googling found no results except for [1] on our forum,
> and the OP thinks it has to do with wxWidgets, but I get this behaviour with
> every GTK directory open dialog.
>
> Has anyone encountered this? Or is my computer also somewhat beserk?

Can’t say I’ve used a directory chooser recently but I have noticed
the same problem with a “Save as” file chooser in a Python GTK program
I have been playing with. It returns the correct file, but always
returned the home directory as the “current folder”. I had this issue
on Arch but not on Ubuntu.

> [1] https://bbs.archlinux.org/viewtopic.php?id=146064

Thanks for that link, I found it illuminating. Yes it is about WX
Widgets but the underlying issue seems to be caused by GTK itself. The
forum post links to WX Widgets bug #14525,  “wxDirDialog::GetPath()
doesn't return the user-selected path”, which claims to be fixed by
remembering the path before hiding the dialog.

http://trac.wxwidgets.org/ticket/14525

The WX Widgets fix:
http://trac.wxwidgets.org/changeset/72779

Fix I just made for my program:
https://github.com/vadmium/python-iview/commit/84970fa

I wonder if it would be considered a GTK bug, or just that all your
applications are misusing the API :P


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux