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:
parent
fcd9878a3b
commit
5f21ab80a8
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue