Do not do an expand path on Exec field of desktop file.

Fixes: #617
This commit is contained in:
Dave Davenport 2017-07-02 11:33:02 +02:00
parent fcd9878a3b
commit 3590b95046
1 changed files with 2 additions and 2 deletions

View File

@ -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.