cuu hace 5 años
padre
commit
56af9a92c2
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      mainscreen.go

+ 2 - 1
mainscreen.go

@@ -145,7 +145,8 @@ func ReadTheDirIntoPages(self *UI.MainScreen, _dir string, pglevel int, cur_page
 			if strings.HasSuffix(strings.ToLower(f.Name()),UI.IconExt) {
 				i2 := self.ExtraName(f.Name())
 				iconitem := UI.NewIconItem()
-				iconitem.CmdPath = _dir+"/"+f.Name()
+        abs_path,_ := filepath.Abs(_dir+"/"+f.Name())
+				iconitem.CmdPath = abs_path
 				UI.MakeExecutable( iconitem.CmdPath )
 				iconitem.MyType = UI.ICON_TYPES["EXE"]
 				if UI.FileExists( UI.SkinMap( _dir+"/"+ UI.ReplaceSuffix(i2,"png"))) {