186
188
/* Honor the 'Path' key if it is in the desktop file */
187
189
if (g_key_file_has_key(_keyfile.get(), "Desktop Entry", "Path", nullptr))
189
gchar* path = g_key_file_get_string(_keyfile.get(), "Desktop Entry", "Path", nullptr);
191
auto path = unique_gchar(g_key_file_get_string(_keyfile.get(), "Desktop Entry", "Path", nullptr));
194
195
/* If they've asked for an Apparmor profile, let's use it! */
195
gchar* apparmor = g_key_file_get_string(_keyfile.get(), "Desktop Entry", "X-Ubuntu-AppArmor-Profile", nullptr);
197
unique_gchar(g_key_file_get_string(_keyfile.get(), "Desktop Entry", "X-Ubuntu-AppArmor-Profile", nullptr));
201
202
retval.splice(retval.end(), confinedEnv(_appname, "/usr/share"));