Can't you remove all traces of GnomeVFS? I don't like the idea of us having code for both libraries in the tree especially if only one of them will be used. By the time mozilla-central becomes a release version I expect GIO to be more common than gnome-vfs on GNOME desktops. I think it's now or never to make this hard decision and I really want it to happen.
+NS_IMETHODIMP
+nsGIOMimeApp::GetCanOpenMultipleFiles(PRBool* aCanOpen)
+{
+ // GIO/GVFS does not provide such info
+ aCanOpen = PR_FALSE;
+ return NS_OK;
+}
+NS_IMETHODIMP
+nsGIOMimeApp::GetRequiresTerminal(PRBool* aRequires)
+{
+ // GIO/GVFS does not provide such info
+ *aRequires = PR_FALSE;
+ return NS_OK;
+}
...and any similar functions; are they used anywhere? I can't imagine why Mozilla needs to know these things, so just remove them if you can. Also remove these:
+ /* boolean keys */
+ const long APP_KEY_CAN_OPEN_MULTIPLE = 4;
+ const long APP_KEY_REQUIRES_TERMINAL = 5;
It seems like we can remove a lot of ugly code by making this switch so I'd like to make it happen. Thanks a lot for your work so far!
OK, now I have time to look at this.
nsGnomeVFSServi ce.cpp \ LIBS) \
...
$(MOZ_GNOMEVFS_
etc...
Can't you remove all traces of GnomeVFS? I don't like the idea of us having code for both libraries in the tree especially if only one of them will be used. By the time mozilla-central becomes a release version I expect GIO to be more common than gnome-vfs on GNOME desktops. I think it's now or never to make this hard decision and I really want it to happen.
+NS_IMETHODIMP :GetCanOpenMult ipleFiles( PRBool* aCanOpen)
+nsGIOMimeApp:
+{
+ // GIO/GVFS does not provide such info
+ aCanOpen = PR_FALSE;
+ return NS_OK;
+}
+NS_IMETHODIMP :GetRequiresTer minal(PRBool* aRequires)
+nsGIOMimeApp:
+{
+ // GIO/GVFS does not provide such info
+ *aRequires = PR_FALSE;
+ return NS_OK;
+}
...and any similar functions; are they used anywhere? I can't imagine why Mozilla needs to know these things, so just remove them if you can. Also remove these:
+ /* boolean keys */ CAN_OPEN_ MULTIPLE = 4; REQUIRES_ TERMINAL = 5;
+ const long APP_KEY_
+ const long APP_KEY_
It seems like we can remove a lot of ugly code by making this switch so I'd like to make it happen. Thanks a lot for your work so far!