Launch app in 32-bit mode [CLOSED]

Any wishes
Locked
JayB
Posts: 192
Joined: Sun Jan 08, 2017 4:38 pm

Launch app in 32-bit mode [CLOSED]

Post by JayB » Tue May 23, 2017 4:53 pm

Launching an app is easy, just hit SHIFT-RETURN.

However, there doesn't seem to be a way to launch an app in 32-bit mode. Would that be possible in Nimble Commander? E.g. with SHIFT-ALT-RETURN?

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Launch app in 32-bit mode

Post by mike » Wed May 24, 2017 2:48 am

Wow, man, it's 2017 nowadays, 32-bit mode is deprecated even on iPhone :)

Speaking seriously, I've checked this area a bit, and there's no public API to control this behavior upon startup.
It's assumed that startup architecture may be changed only via Finder's "Get Info".
The most reasonable way to achieve what you want is to setup an external tool, which will call an "arch" tool, which in turn will execute a binary in desired mode. A bit complicated, but doable.

Here's the RTFM:
https://developer.apple.com/legacy/libr ... rch.1.html

JayB
Posts: 192
Joined: Sun Jan 08, 2017 4:38 pm

Re: Launch app in 32-bit mode

Post by JayB » Wed May 24, 2017 5:04 am

Right, that would be the alternative then, a workflow in Services that looks for the bundle executable path via Info.plist, then runs the app with

Code: Select all

arch -i386 /path/to/exec
Too bad there's no API. :| But believe it or not, there are still some 32-bit things flying around. :)

Locked