Commit 594c6035 authored by Manuel Grießmayr's avatar Manuel Grießmayr Committed by Alexander Schwinn
Browse files

Ignore escape sequences when executing launchers

MR !263
parent e7e3f5cd
......@@ -1634,7 +1634,8 @@ thunar_file_execute (ThunarFile *file,
type = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_TYPE, NULL);
if (G_LIKELY (g_strcmp0 (type, "Application") == 0))
{
exec = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_EXEC, NULL);
/* load exec property but ignore escape sequences */
exec = g_key_file_get_value (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_EXEC, NULL);
if (G_LIKELY (exec != NULL))
{
/* if the .desktop file is not secure, ask user what to do */
......
Supports Markdown
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