From 3590b9504662d34b2d23fb3e402bbc192baf64b8 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 2 Jul 2017 11:33:02 +0200 Subject: Do not do an expand path on Exec field of desktop file. Fixes: #617 --- source/dialogs/drun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/dialogs') 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. -- cgit v1.2.3