1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Do not do an expand path on Exec field of desktop file. (#618)

Fixes: #617
This commit is contained in:
Dave Davenport 2017-07-02 19:34:31 +02:00 committed by GitHub
parent fcd9878a3b
commit 5f21ab80a8

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.