[Xfce4-commits] [xfce/exo] 01/01: exo-helper: Use full custom command if parameter is not passed (Bug 4093)
noreply at xfce.org
noreply at xfce.org
Mon Jul 17 13:04:53 CEST 2017
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/exo.
commit 3165abbe6dbe04aad75cdda2b4cd0b99231b1404
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Mon Jul 17 07:04:48 2017 -0400
exo-helper: Use full custom command if parameter is not passed (Bug 4093)
---
exo-helper/exo-helper.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/exo-helper/exo-helper.c b/exo-helper/exo-helper.c
index 44da82b..9659041 100644
--- a/exo-helper/exo-helper.c
+++ b/exo-helper/exo-helper.c
@@ -1056,8 +1056,13 @@ exo_helper_database_set_custom (ExoHelperDatabase *database,
xfce_rc_write_entry (rc, "Name", name);
g_free (name);
- /* use only the binary for the Commands */
- xfce_rc_write_entry (rc, "X-XFCE-Commands", *argv);
+ if (strstr (command, "%s") == NULL) {
+ /* trust the user, they defined the command without a parameter (bug #4093) */
+ xfce_rc_write_entry (rc, "X-XFCE-Commands", command);
+ } else {
+ /* use only the binary for the Commands */
+ xfce_rc_write_entry (rc, "X-XFCE-Commands", *argv);
+ }
/* cleanup */
g_strfreev (argv);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list