summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <DaveDavenport@users.noreply.github.com>2017-07-02 19:34:31 +0200
committerGitHub <noreply@github.com>2017-07-02 19:34:31 +0200
commit5f21ab80a8f54e6133140582fe59a2992021c29a (patch)
tree08efe2b55c9a5b586967a614b044dc84e75aa543
parentfcd9878a3b35b86851fa589f909c4cad2332de31 (diff)
Do not do an expand path on Exec field of desktop file. (#618)
Fixes: #617
-rw-r--r--source/dialogs/drun.c4
1 files 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.