[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 03/03: Fix editing menu items containting a single quote. (bug #15091)

noreply at xfce.org noreply at xfce.org
Wed Jan 30 18:44:36 CET 2019


This is an automated email from the git hooks/post-receive script.

g   o   t   t   c   o   d   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 panel-plugins/xfce4-whiskermenu-plugin.

commit a57e4da914ae39a5a66d7eac58fb45e0e3db08d7
Author: Graeme Gott <graeme at gottcode.org>
Date:   Mon Jan 28 20:54:17 2019 -0500

    Fix editing menu items containting a single quote. (bug #15091)
---
 panel-plugin/page.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/page.cpp b/panel-plugin/page.cpp
index afa736e..eab9629 100644
--- a/panel-plugin/page.cpp
+++ b/panel-plugin/page.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018 Graeme Gott <graeme at gottcode.org>
+ * Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019 Graeme Gott <graeme at gottcode.org>
  *
  * This library is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -404,8 +404,10 @@ void Page::edit_selected()
 
 	GError* error = NULL;
 	gchar* uri = launcher->get_uri();
-	gchar* command = g_strconcat("exo-desktop-item-edit ", uri, NULL);
+	gchar* quoted_uri = g_shell_quote(uri);
+	gchar* command = g_strconcat("exo-desktop-item-edit ", quoted_uri, NULL);
 	g_free(uri);
+	g_free(quoted_uri);
 	if (g_spawn_command_line_async(command, &error) == false)
 	{
 		xfce_dialog_show_error(NULL, error, _("Unable to edit launcher."));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list