After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566436 - Use GIO
Use GIO
Status: RESOLVED FIXED
Product: gnome-launch-box
Classification: Deprecated
Component: default
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-launch-box-maint
gnome-launch-box-maint
: 590827 (view as bug list)
Depends on:
Blocks: 588322
 
 
Reported: 2009-01-03 19:09 UTC by Bastien Nocera
Modified: 2010-02-11 13:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Some love for a forgotten app (19.19 KB, patch)
2009-06-16 21:19 UTC, Jon Nettleton
none Details | Review
complete port of existing codebase to gio (18.82 KB, patch)
2009-06-18 13:10 UTC, Jon Nettleton
none Details | Review

Description Bastien Nocera 2009-01-03 19:09:58 UTC
instead of gnome-vfs.
Comment 1 André Klapper 2009-01-19 15:02:37 UTC
$:andre\> grep -r vfs .
./src/lb-utils.c:#include <libgnomevfs/gnome-vfs.h>
./src/lb-utils.c:		info = gnome_vfs_file_info_new ();
./src/lb-utils.c:		result = gnome_vfs_get_file_info (
./src/lb-utils.c:			gnome_vfs_file_info_unref (info);
./src/lb-utils.c:		gnome_vfs_file_info_unref (info);
./src/lb-utils.h:#include <libgnomevfs/gnome-vfs-file-info.h>
./src/lb-item-file.c:	gnome_vfs_mime_application_launch (info->application, &list);
./src/lb-module-files.c:#include <libgnomevfs/gnome-vfs.h>
./src/lb-module-files.c:#include <libgnomevfs/gnome-vfs-mime-handlers.h>
./src/lb-module-files.c:#include <libgnomevfs/gnome-vfs-file-info.h>
./src/lb-module-files.c:	r = gnome_vfs_directory_open (&handle, priv->dir_uri,
./src/lb-module-files.c:		g_warning("error opening %s: %s", priv->dir_uri, gnome_vfs_result_to_string(r));
./src/lb-module-files.c:	info = gnome_vfs_file_info_new ();
./src/lb-module-files.c:	while (gnome_vfs_directory_read_next (handle, info) == GNOME_VFS_OK) {
./src/lb-module-files.c:		gnome_vfs_file_info_clear (info);
./src/lb-module-files.c:	gnome_vfs_directory_close (handle);
./src/lb-module-files.c:		info = gnome_vfs_file_info_new ();
./src/lb-module-files.c:		if (gnome_vfs_get_file_info (lb_item_file_get_uri (item_file),
./src/lb-module-files.c:		gnome_vfs_file_info_unref (info);
./src/lb-module-files.c:	default_application = gnome_vfs_mime_get_default_application (mime_type);
./src/lb-module-files.c:	applications = gnome_vfs_mime_get_all_applications (mime_type);
./src/lb-module-files.c:		icon = gnome_vfs_mime_application_get_icon (application);
./src/lb-module-files.c:		name = gnome_vfs_mime_application_get_name (application);
./src/lb-module-files.c:				    gnome_vfs_mime_application_free);
./src/lb-module-files.c:		if (gnome_vfs_mime_application_equal (application, default_application)) {
./src/lb-module-files.c:	gnome_vfs_mime_application_launch (application, &list);
./src/lb-main.c:#include <libgnomevfs/gnome-vfs-init.h>
./src/lb-main.c:       	gnome_vfs_init ();
./configure.ac:	gnome-vfs-2.0 >= 2.10
./tests/search-applications.c:#include <libgnomevfs/gnome-vfs.h>
./tests/search-applications.c:	gnome_vfs_init ();
./tests/search-applications.c:	gnome_vfs_shutdown ();
./tests/search-home.c:#include <libgnomevfs/gnome-vfs.h>
./tests/search-home.c:	gnome_vfs_init ();
./tests/mime-actions.c:#include <libgnomevfs/gnome-vfs.h>
./tests/mime-actions.c:#include <libgnomevfs/gnome-vfs-mime-handlers.h>
./tests/mime-actions.c:	applications = gnome_vfs_mime_get_all_applications (info->mime_type);
./tests/mime-actions.c:		const gchar *name = gnome_vfs_mime_application_get_name (application);
./tests/mime-actions.c:		const gchar *icon = gnome_vfs_mime_application_get_icon (application);
./tests/mime-actions.c:	gnome_vfs_init ();
./tests/mime-actions.c:	info = gnome_vfs_file_info_new ();
./tests/mime-actions.c:	result = gnome_vfs_get_file_info (uri, info,
./tests/mime-actions.c:			    gnome_vfs_result_to_string (result));
Comment 2 Jon Nettleton 2009-06-16 21:19:50 UTC
Created attachment 136776 [details] [review]
Some love for a forgotten app

Hey guys,  you have a great start here.  This isn't a perfect patch but it is 95% working for me.  I plan on putting some more work on gnome-launch-box to integrate it better with some of the work we are doing with gnome-shell.  GNOME 3.0 here we come.
Comment 3 Sven Herzberg 2009-06-17 17:28:59 UTC
(In reply to comment #2)
> Created an attachment (id=136776) [edit]
> Some love for a forgotten app
> 
> Hey guys,  you have a great start here.  This isn't a perfect patch but it is
> 95% working for me.  I plan on putting some more work on gnome-launch-box to
> integrate it better with some of the work we are doing with gnome-shell.  GNOME
> 3.0 here we come.

Can you please enlighten me on the missing 5%? What's not working for you?
Comment 4 Jon Nettleton 2009-06-17 22:39:13 UTC
the icons were not populating correctly in the launch menu after a document was selected.  I have ironed out that bug and am working on general cleanup and enhancements.  Will try and post an updated patch soon.
Comment 5 Sven Herzberg 2009-06-17 22:59:31 UTC
(In reply to comment #4)
> the icons were not populating correctly in the launch menu after a document was
> selected.  I have ironed out that bug and am working on general cleanup and
> enhancements.  Will try and post an updated patch soon.

Cool, when reposting a git commit, please set your full name and email address properly with git-config (user.name and user.email settings).
Comment 6 Jon Nettleton 2009-06-18 13:10:18 UTC
Created attachment 136916 [details] [review]
complete port of existing codebase to gio

Sorry I missed the name email config problem.  I have that set but for some reason git tends to not update it on some projects.  Just another bit of git quirkiness I guess.  This patch is complete minus one line that references vfs that is commented out.
Comment 7 Sven Herzberg 2009-06-18 16:02:08 UTC
I accidentally closed the bug.

Unfortunately I cannot test the patch right now, I'll try to have time for it in the next two weeks (will have to upgrade this system before). If you don't hear from me, feel free to reping.
Comment 8 Javier Jardón (IRC: jjardon) 2009-08-05 10:49:47 UTC
*** Bug 590827 has been marked as a duplicate of this bug. ***
Comment 9 André Klapper 2009-08-05 12:43:20 UTC
(In reply to comment #7)
> in the next two weeks. If you don't hear from me, feel free to reping.

Sven: reping.
Comment 10 Jon Nettleton 2009-08-31 22:53:38 UTC
Hey guys any word on this?  I have been sucked in by a couple of other projects so haven't had times to update this at all.