Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Patch for compiz-deskmenu (deskmenu-menu.c)

By: a guest on Oct 6th, 2010  |  syntax: Diff  |  size: 1.01 KB  |  hits: 80  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -aur compiz-deskmenu/deskmenu-menu.c compiz-deskmenu-2/deskmenu-menu.c
  2. --- compiz-deskmenu/deskmenu-menu.c     2010-10-06 13:41:42.000000000 -0700
  3. +++ compiz-deskmenu-2/deskmenu-menu.c   2010-10-06 13:47:41.000000000 -0700
  4. @@ -48,6 +48,7 @@
  5.      gtk_main_quit ();
  6.  }
  7.  
  8. +//This is how menu command is launched
  9.  static void
  10.  launcher_activated (GtkWidget *widget,
  11.                      gchar     *command)
  12. @@ -57,11 +58,7 @@
  13.  
  14.      deskmenu = g_object_get_data (G_OBJECT (widget), "deskmenu");
  15.  
  16. -       if (!gdk_spawn_on_screen (gdk_screen_get_default (),
  17. -                              g_get_home_dir (),
  18. -                              g_strsplit (command, " ", 0),
  19. -                              deskmenu->envp, G_SPAWN_SEARCH_PATH,
  20. -                              NULL, NULL, NULL, &error))
  21. +       if (!gdk_spawn_command_line_on_screen (gdk_screen_get_default (), command, &error))
  22.      {
  23.          GtkWidget *message = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_ERROR,
  24.              GTK_BUTTONS_CLOSE, "%s", error->message);