View Issue Details

IDProjectCategoryView StatusLast Update
0032936FPCDocumentationpublic2018-01-13 11:51
ReporterChris RordenAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformMacBook 2012 Retina 13"OSDarwinOS Version10.11.6
Product Version3.0.4Product Build 
Target Version3.2.0Fixed in Version3.1.1 
Summary0032936: Enhance documentation for application.location
DescriptionThe documentation
  https://www.freepascal.org/docs-html/fcl/custapp/tcustomapplication.location.html
is correct, but does not provide details that would help the user fix the issue. Can I suggest the phrase
  (Mac OS under certain circumstances).
be reworded to read
 (Mac OS under certain circumstances, such as gatekeeper path randomization).
This will help the reader understand what the circumstances are and potentially how to fix it (e.g. code signing).
TagsNo tags attached.
Fixed in Revision1456
FPCOldBugId
FPCTarget
Attached Files

Activities

Jonas Maebe

2018-01-02 20:53

manager   ~0105271

That warning predates GateKeeper. The application can simply be moved to a different location after it has been started. There is no way to get the location of the application in a safe way under any circumstances under (Mac) OS X/macOS (even if you constantly would get the physical path again in some way, it could be moved in the next millisecond).

Michael Van Canneyt

2018-01-13 11:51

administrator   ~0105737

Documented in Paramstr(0) and TCustomApplication.location to say that MacOS does not have a reliable way to retrieve program location.

Issue History

Date Modified Username Field Change
2018-01-02 20:24 Chris Rorden New Issue
2018-01-02 20:24 Chris Rorden Status new => assigned
2018-01-02 20:24 Chris Rorden Assigned To => Michael Van Canneyt
2018-01-02 20:53 Jonas Maebe Note Added: 0105271
2018-01-13 11:51 Michael Van Canneyt Fixed in Revision => 1456
2018-01-13 11:51 Michael Van Canneyt Note Added: 0105737
2018-01-13 11:51 Michael Van Canneyt Status assigned => resolved
2018-01-13 11:51 Michael Van Canneyt Fixed in Version => 3.1.1
2018-01-13 11:51 Michael Van Canneyt Resolution open => fixed
2018-01-13 11:51 Michael Van Canneyt Target Version => 3.2.0