LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xdg-menu-icewm.patch of Package xdg-menu (Project X11:common:Factory)

--- xdg_menu
+++ xdg_menu
@@ -1549,7 +1549,7 @@
 	my $menu_name = $menu->{'PrepName'};
 	
 	$output .= ' ' x $indent;
-	$output .= "menu \"$menu_name\" folder {\n";
+	$output .= "menu \"$menu_name\" folder {\n" if $indent > 0; #skip toplevel menu, bug 273232
 	
 	foreach my $entry (@{$menu->{'entries'}}) {
 		if ($entry->{type} eq 'desktop') {
@@ -1570,7 +1570,7 @@
 		
 	}
 	$output .= ' ' x $indent;
-	$output .= "}\n";
+	$output .= "}\n" if $indent > 0;
 	
 	return $output;
 }