Gets the path to the executable file

When the M1 in apple chips or on the AMD processor window using the File: : getSpecialLocation (File: : currentExecutableFile), it will get to the wrong path. Have you encountered this problem? Thanks!

I think we need a bit more information here. Which path do you expect and which path do you actually get? And do you encounter the problem from within an audio plugin or from within a standalone application?

The path shown in Apple M1 looks like this: “(juce::File) file = {
fullPath = {
text = (data = “/private/var/folders/l5/ggk_8qkx4glb0cpnhxgmnvz00000gn/T/AppTranslocation/318E4D57-998F-4E9A-A92F-60807447EBF1/d/Device Status.gif”)
}
}”, this is the path I don’t want.
The path shown on an Intel processor looks like this: “(juce::File) file = {
fullPath = {
text = (data = “/User/emusicer/Desktop/123/NewFloder/ControlCenter/Builds/MacOSX/build/Debug/Device Status.gif”)
}
}”, this is the path I want.
I encountered this problem in a standalone application.
Thank you!