summaryrefslogtreecommitdiffstats
path: root/source/dialogs
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-07-02 11:33:02 +0200
committerDave Davenport <qball@gmpclient.org>2017-07-02 11:33:02 +0200
commit3590b9504662d34b2d23fb3e402bbc192baf64b8 (patch)
tree08efe2b55c9a5b586967a614b044dc84e75aa543 /source/dialogs
parentfcd9878a3b35b86851fa589f909c4cad2332de31 (diff)
Do not do an expand path on Exec field of desktop file.
Fixes: #617
Diffstat (limited to 'source/dialogs')
-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.