From 5f21ab80a8f54e6133140582fe59a2992021c29a Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 2 Jul 2017 19:34:31 +0200 Subject: [PATCH] Do not do an expand path on Exec field of desktop file. (#618) Fixes: #617 --- source/dialogs/drun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c index 952cc069..c3fff896 100644 --- a/source/dialogs/drun.c +++ b/source/dialogs/drun.c @@ -183,7 +183,8 @@ static void exec_cmd_entry ( DRunModeEntry *e ) g_warning ( "Nothing to execute after processing: %s.", e->exec );; return; } - gchar *fp = rofi_expand_path ( g_strstrip ( str ) ); + + const gchar *fp = g_strstrip ( str ); gchar *exec_path = g_key_file_get_string ( e->key_file, "Desktop Entry", "Path", NULL ); if ( exec_path != NULL && strlen ( exec_path ) == 0 ) { // If it is empty, ignore this property. (#529) @@ -214,7 +215,6 @@ static void exec_cmd_entry ( DRunModeEntry *e ) g_free ( wmclass ); g_free ( exec_path ); g_free ( str ); - g_free ( fp ); } /** * This function absorbs/freeÅ› path, so this is no longer available afterwards.