Commit d06a1542 authored by Victor Ananjevsky's avatar Victor Ananjevsky

fix parsing desktop files for icons dialog

parent a1a25e72
......@@ -328,6 +328,8 @@ parse_desktop_file (gchar * filename)
if (type == TYPE_APP)
{
ent->command = g_key_file_get_string (kf, "Desktop Entry", "Exec", NULL);
if (ent->command)
{
/* remove possible arguments patterns */
for (i = strlen (ent->command); i > 0; i--)
{
......@@ -339,6 +341,7 @@ parse_desktop_file (gchar * filename)
}
ent->in_term = g_key_file_get_boolean (kf, "Desktop Entry", "Terminal", NULL);
}
}
else
{
gchar *url = g_key_file_get_string (kf, "Desktop Entry", "URL", NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment