1Upstream-Status: Pending 2 3Index: openbox-xdgmenu-0.3/openbox-xdgmenu.c 4=================================================================== 5--- openbox-xdgmenu-0.3.orig/openbox-xdgmenu.c 6+++ openbox-xdgmenu-0.3/openbox-xdgmenu.c 7@@ -197,7 +197,7 @@ void process_entry(GMenuTreeEntry *entry 8 { 9 GDesktopAppInfo *appinfo = gmenu_tree_entry_get_app_info (entry); 10 char *name = g_strdup (g_app_info_get_name(G_APP_INFO(appinfo))); 11- char *exec = g_strdup (g_app_info_get_executable(G_APP_INFO(appinfo))); 12+ char *exec = g_strdup (g_app_info_get_commandline(G_APP_INFO(appinfo))); 13 int i; 14 15 for (i = 0; i < strlen(exec) - 1; i++) { 16@@ -217,8 +217,11 @@ void process_entry(GMenuTreeEntry *entry 17 } 18 } 19 20- g_printf("<item label=\"%s\">\n", g_strjoinv("&", g_strsplit(name,"&",0))), 21- g_printf("<action name=\"Execute\"><command>%s</command></action>\n", exec), 22+ g_printf("<item label=\"%s\">\n", g_strjoinv("&", g_strsplit(name,"&",0))); 23+ g_printf("<action name=\"Execute\"><command>%s%s</command></action>\n", 24+ g_desktop_app_info_get_boolean(appinfo, G_KEY_FILE_DESKTOP_KEY_TERMINAL) ? 25+ "x-terminal-emulator -e " : "", 26+ exec); 27 g_printf("</item>\n"); 28 29 g_free(name); 30