diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-14 17:42:07 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-14 17:42:07 +0100 |
commit | 121278e6d1859762b57e09931656d807061eb01f (patch) | |
tree | 702f95fa9cd6c95c0c115ee520e5f946760333b0 | |
parent | cc682f107b740a549e6526589854128f94d3bb46 (diff) |
[DRUN] Expand path we get from Desktop file
* This is more 'free' then spec. but does not break anything.
Fixes: #317
-rw-r--r-- | source/dialogs/drun.c | 4 | ||||
-rw-r--r-- | source/textbox.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c index e472fa3a..b136da80 100644 --- a/source/dialogs/drun.c +++ b/source/dialogs/drun.c @@ -120,8 +120,10 @@ static void exec_cmd_entry ( DRunModeEntry *e ) } } } - execsh ( g_strstrip ( str ), e->terminal ); + gchar *fp = rofi_expand_path ( g_strstrip ( str ) ); + execsh ( fp, e->terminal ); g_free ( str ); + g_free ( fp ); } /** * Internal spider used to get list of executables. diff --git a/source/textbox.c b/source/textbox.c index eed72705..6a2ee40e 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -145,7 +145,7 @@ static void __textbox_update_pango_text ( textbox *tb ) } else { pango_layout_set_attributes ( tb->layout, NULL ); - pango_layout_set_text ( tb->layout, tb->text, -1); + pango_layout_set_text ( tb->layout, tb->text, -1 ); } } |