Recent

Author Topic: Bundle path  (Read 901 times)

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Bundle path
« on: February 06, 2023, 11:05:08 am »
Hi, is there any LazFileUtils or FileUtil function which returns mac bundle path ? Not binary path only bundle path eg
/Applications/MyApp.app ?

dsiders

  • Hero Member
  • *****
  • Posts: 1077
Re: Bundle path
« Reply #1 on: February 06, 2023, 08:40:17 pm »
Hi, is there any LazFileUtils or FileUtil function which returns mac bundle path ? Not binary path only bundle path eg
/Applications/MyApp.app ?

LazUtils in 2.3.0 has:

Code: Pascal  [Select][+][-]
  1. function ProgramDirectoryWithBundle: string;

in components/lazutils/fileutil.pas.

Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Bundle path
« Reply #2 on: February 07, 2023, 10:37:02 am »
Thanks :)

 

TinyPortal © 2005-2018