mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 16:08:52 +01:00
add Abs path
This commit is contained in:
parent
611b6b86bd
commit
56af9a92c2
@ -145,7 +145,8 @@ func ReadTheDirIntoPages(self *UI.MainScreen, _dir string, pglevel int, cur_page
|
|||||||
if strings.HasSuffix(strings.ToLower(f.Name()),UI.IconExt) {
|
if strings.HasSuffix(strings.ToLower(f.Name()),UI.IconExt) {
|
||||||
i2 := self.ExtraName(f.Name())
|
i2 := self.ExtraName(f.Name())
|
||||||
iconitem := UI.NewIconItem()
|
iconitem := UI.NewIconItem()
|
||||||
iconitem.CmdPath = _dir+"/"+f.Name()
|
abs_path,_ := filepath.Abs(_dir+"/"+f.Name())
|
||||||
|
iconitem.CmdPath = abs_path
|
||||||
UI.MakeExecutable( iconitem.CmdPath )
|
UI.MakeExecutable( iconitem.CmdPath )
|
||||||
iconitem.MyType = UI.ICON_TYPES["EXE"]
|
iconitem.MyType = UI.ICON_TYPES["EXE"]
|
||||||
if UI.FileExists( UI.SkinMap( _dir+"/"+ UI.ReplaceSuffix(i2,"png"))) {
|
if UI.FileExists( UI.SkinMap( _dir+"/"+ UI.ReplaceSuffix(i2,"png"))) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user