vfmg (DEVEL): vfmg - can't use '/' in name

sparky sparky at pld-linux.org
Sat Jan 28 16:39:56 CET 2006


Author: sparky                       Date: Sat Jan 28 15:39:56 2006 GMT
Module: vfmg                          Tag: DEVEL
---- Log message:
- can't use '/' in name

---- Files affected:
vfmg:
   vfmg (1.73.2.56 -> 1.73.2.57) 

---- Diffs:

================================================================
Index: vfmg/vfmg
diff -u vfmg/vfmg:1.73.2.56 vfmg/vfmg:1.73.2.57
--- vfmg/vfmg:1.73.2.56	Sat Jan 28 16:26:40 2006
+++ vfmg/vfmg	Sat Jan 28 16:39:51 2006
@@ -1290,11 +1290,12 @@
 	my @apps;
 	foreach my $entry (sort cmpdname keys %{$menu[$no]}) {
 		my $d = $desktop[$entry];
+		(my $name = encode($opt{encoding}, $$d{Name})) =~ s#/#:#g;
 		if($menu[$no]{$entry} < 0) {
-			push @apps, [encode($opt{encoding}, $$d{Name}), $$d{Exec}];
+			push @apps, [$name, $$d{Exec}];
 		} else {
 			system("wmiir", "create", "/menu/items/menu" . $level . "/items/" .
-				encode($opt{encoding}, $$d{Name}) . " [>",
+				$name . " [>",
 				"wmiir write /menu/lookup /items/menu" . $level."/".$$d{file}
 				. "/items; wmiir write /menu/ctl 'display 1'");
 				
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/vfmg/vfmg?r1=1.73.2.56&r2=1.73.2.57&f=u



More information about the pld-cvs-commit mailing list