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) ...@@ -328,6 +328,8 @@ parse_desktop_file (gchar * filename)
if (type == TYPE_APP) if (type == TYPE_APP)
{ {
ent->command = g_key_file_get_string (kf, "Desktop Entry", "Exec", NULL); ent->command = g_key_file_get_string (kf, "Desktop Entry", "Exec", NULL);
if (ent->command)
{
/* remove possible arguments patterns */ /* remove possible arguments patterns */
for (i = strlen (ent->command); i > 0; i--) for (i = strlen (ent->command); i > 0; i--)
{ {
...@@ -339,6 +341,7 @@ parse_desktop_file (gchar * filename) ...@@ -339,6 +341,7 @@ parse_desktop_file (gchar * filename)
} }
ent->in_term = g_key_file_get_boolean (kf, "Desktop Entry", "Terminal", NULL); ent->in_term = g_key_file_get_boolean (kf, "Desktop Entry", "Terminal", NULL);
} }
}
else else
{ {
gchar *url = g_key_file_get_string (kf, "Desktop Entry", "URL", NULL); 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