GNOME Bugzilla – Bug 563992
Request for g_lookup_in_data_dirs() API
Last modified: 2008-12-10 18:50:26 UTC
It turns out such an API is quite useful if you want to replace gnome_program_locate_file(), for example. It's also useful to find a .desktop file. I have some trivial code for that in gnome-panel/gnome-panel/libpanel-util/panel-glib.c. I'm just not sure if it should only take a basename as argument, or if relative path is okay, or...
gnome-session does this too (gnome-session/main.c:find_desktop_file_for_app_name)
Created attachment 124346 [details] [review] Untested patch Will test the patch now.
Created attachment 124348 [details] Test program Seems to be working fine. Note that there should be a s/char/gchar in the patch.
Devhelp does it too. Lemme dupe to my older bug that has a more ambitious proposal. Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 328679 ***