суббота, 22 сентября 2012 г.

Add current directory to GTK+ file open dialog

Now GTK+ file open dialog offers no way to open file from current working directory. One can find recent documents, home directory or some other bookmarks. Quite frustrating when you know for sure where file you need is, but forced to traverse directory tree to current working directory.

Recently I found workaround. Solution is to add /proc/self/cwd as bookmark. Unfortunately path will be displayed as /proc/self/cwd, not actual cwd, but anyway, it works!