Add constructor g_desktop_app_info_new_from_keyfile_with_filename()
Submitted by Mikkel Kamstrup Erlandsen
Link to original bug (#627836)
Description
Created attachment 168635 Adds new constructor g_desktop_app_info_new_from_keyfile_with_filename()
I am attaching a patch series that adds a new constructor for GDesktopAppInfos g_desktop_app_info_new_from_keyfile_with_filename().
When doing detailed work with appinfos I often find myself needing to parse the GKeyFiles manually, extracting some values from it, and then creating a GDesktopAppInfo or the keyfile.
However I am in most cases also in need to have the desktop id and filename of the .desktop file available together with the appinfo as well. So unless I want to do double IO for the .desktop file with g_desktop_app_info_new() in order to set the desktop id on it, I need to invent some containers with metadata for the GAppInfos. This is unhandy and the patches I attach addresses all my needs.
Patch 168635, "Adds new constructor g_desktop_app_info_new_from_keyfile_with_filename()":
0001-New-constructor-g_desktop_app_info_new_from_keyfile_.patch