GNOME Bugzilla – Bug 329802
file save dialog won't allow postgres://foo
Last modified: 2018-06-29 20:56:45 UTC
Please describe the problem: in revision 12986, the file save dialog doesn't allow postgres://foo .. specifically, response = gtk_dialog_run(GTK_DIALOG(file_box)); in gnc-file.c , in gnc_file_dialog(). The section of code after that talks about "looking for constructs like postgres://foo" , but it's not reached due to gtk_dialog_run refusing such things. Steps to reproduce: 1. try to save your data using the postgres:// url format Actual results: dialog pops up : The folder contents could not be displayed, error getting information for '/home/sokolsky/postgres:': No such file or directory Expected results: it should save my data into a postgres database, or alternately complain that my postgres system is set up incorrectly, or there's a permissions problem, or some such. Does this happen every time? yes Other information: Sorry to be submitting this bug but not fixing it, but I haven't done gtk development before so I don't know enough about the gtk file dialog eccentricities to know how to fix it.
I've been unsuccessful at coercing thhe GtkFileChooser to accept these types of strings. Apparently, the file-chooser is really for *files* and nothing else. However, I think it may be acceptable to enable the parsing of these strings on the command-line only. This would not allow a user to create a *new* postgres db from the gui, but it would allow them to open an existing db from the command-line or even perhaps create a new db from the command line. The postgres functionality is going away so I think it's ok that the file dialog not support it. The file dialog should still allow the user to save an opened postgres db to an xml file, though. Closing as WONTFIX.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=329802. Please update any external references or bookmarks.