MacOS Start FireFox via CommandLine in 32 bit

1

Firefox can be startet via Commandline

How can I run an application with command line arguments in Mac OS

Is there an argument to make it start in 32 bit ?

I know i could select it via finder, but thats no option for my problem

I have solved a similar problem for chrome by creating an Automator "Launcher" which start Chrome with deactivated flash, but for that I need to know whether there is a command line argument to set 32bit.

Maybe by changing systems settings by "default" ?

Dukeatcoding

Posted 2012-11-16T13:01:35.187

Reputation: 171

Answers

3

arch -i386 /Applications/Firefox.app/Contents/MacOS/firefox-bin should do the trick in Terminal.

You could then pack that into an AppleScript of some kind.

heiglandreas

Posted 2012-11-16T13:01:35.187

Reputation: 1 153

1

A solution I still have to test

#!/bin/bash

# Check to see if Firefox exists
if
 ls -la /Applications/Firefox.app/Contents/Resources

then

# Set the architecture preference order to 32-bit first
defaults write /Applications/Firefox.app/Contents/Info "LSArchitecturePriority" '(i386,   "x86_64")'

# Making sure the permissions on the Info.plist are correct
chmod -R 775 /Applications/Firefox.app/

else
echo "Firefox is not installed"

fi

Dukeatcoding

Posted 2012-11-16T13:01:35.187

Reputation: 171

sadly not really working althoguh my research showed that it is the right approach to use LSArchitecturePriority – Dukeatcoding – 2012-11-16T15:32:20.987

I'd disagree -- modifying an application bundle is a bad idea. For example, it'll invalidate the app's code signature. – Gordon Davisson – 2012-11-16T21:13:34.593

you maybe right on that, its not working properly anyway ill try the other answer – Dukeatcoding – 2012-11-19T07:02:08.730