<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.caminobrowser.org/index.php?action=history&amp;feed=atom&amp;title=Development%3AUsing_Custom_Profiles</id>
	<title>Development:Using Custom Profiles - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.caminobrowser.org/index.php?action=history&amp;feed=atom&amp;title=Development%3AUsing_Custom_Profiles"/>
	<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Using_Custom_Profiles&amp;action=history"/>
	<updated>2026-05-08T14:39:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>http://wiki.caminobrowser.org/index.php?title=Development:Using_Custom_Profiles&amp;diff=11603&amp;oldid=prev</id>
		<title>Sardisson: move content from Development:Coding</title>
		<link rel="alternate" type="text/html" href="http://wiki.caminobrowser.org/index.php?title=Development:Using_Custom_Profiles&amp;diff=11603&amp;oldid=prev"/>
		<updated>2011-01-10T01:42:17Z</updated>

		<summary type="html">&lt;p&gt;move content from &lt;a href=&quot;/Development:Coding&quot; title=&quot;Development:Coding&quot;&gt;Development:Coding&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When developing, debugging certain issues, or testing, you may find it helpful to run Camino with a custom profile, either to facilitate testing/debugging specific scenarios or to simply allow you to continue running your daily-use Camino while working. There are several methods available that allow you to launch another Camino at the same time as your daily-use Camino and/or protect your daily-use profile from development builds.  Some methods may be more useful in certain situations than others.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;N.B&amp;#039;&amp;#039;&amp;#039; Note that none of these methods currently handle the &amp;lt;code&amp;gt;org.mozilla.camino.plist&amp;lt;/code&amp;gt;, which stores settings related to our Cocoa UI; both builds will read the file into memory (and write to it occasionally), and the last build to quit will win and stomp other changes written to the file previously.&lt;br /&gt;
&lt;br /&gt;
===Troubleshoot Camino===&lt;br /&gt;
&lt;br /&gt;
A quick and easy way to test your changes without affecting your daily-use profile (or getting the dreaded &amp;quot;Another copy of Camino is already running&amp;quot; alert) is to use [http://pimpmycamino.com/parts/troubleshoot-camino Troubleshoot Camino].  Simply drag the built Camino application (from &amp;lt;code&amp;gt;$objdir/camino/build/Debug/&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;$objdir/dist/&amp;lt;/code&amp;gt;) to Troubleshoot Camino and you’re off.&lt;br /&gt;
&lt;br /&gt;
Or, you can launch on Troubleshoot Camino like a regular application, and it will show an Open dialogue and let you choose a copy of Camino to launch; the tool will also remember the path to the last Camino you selected, making a second run require fewer clicks.&lt;br /&gt;
&lt;br /&gt;
Note that Troubleshoot Camino always creates a temporary fresh profile, so if you need to persist any profile data, you will need to use another method.&lt;br /&gt;
&lt;br /&gt;
===Xcode===&lt;br /&gt;
&lt;br /&gt;
If you work mostly in Xcode, you can set the same environment variable that Troubleshoot Camino uses; then, any time you launch your (debug) Camino via Xcode, it will use profile location you’ve specified.&lt;br /&gt;
&lt;br /&gt;
# From Xcode’s Project menu, choose “Edit Active Executable ‘CaminoApp’”&lt;br /&gt;
# In the Arguments tab, click the “+” button underneath the ”Variables to be set in the environment” table.&lt;br /&gt;
# In the “Name” column, type &amp;lt;code&amp;gt;CAMINO_PROFILE_DIR&amp;lt;/code&amp;gt;, and in the “Value” column, provide the path to the location where you would like to store the profile for your development build.&lt;br /&gt;
# To run, click “Build &amp;amp; Go” in the toolbar.&lt;br /&gt;
&lt;br /&gt;
===Terminal===&lt;br /&gt;
&lt;br /&gt;
====Environment variable====&lt;br /&gt;
In the Terminal, you can set the same environment variable that Troubleshoot Camino uses:&lt;br /&gt;
:&amp;lt;code&amp;gt;export CAMINO_PROFILE_DIR=&amp;quot;AbsolutePathToDesiredProfileFolder&amp;quot;; open /path/to/Camino.app&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you simply export the variable, any future launch of Camino from that terminal will use the specified profile location.&lt;br /&gt;
&lt;br /&gt;
====Command-line argument====&lt;br /&gt;
&lt;br /&gt;
Camino also supports the &amp;lt;code&amp;gt;-profile&amp;lt;/code&amp;gt; command-line argument.  This option is useful for running Gecko tests, e.g. [[Development:Testing_arbitrary_scenarios_with_Mochitest|Mochitest]], and also for [[QA:Release_Testing:l10n|localization testing]] and debugging with &amp;lt;code&amp;gt;gdb&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To use this method, use the full path to the Camino binary followed by the &amp;lt;code&amp;gt;-profile&amp;lt;/code&amp;gt; argument with the full path to the desired profile location:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;/path/to/Camino.app/Contents/MacOS/Camino -profile /full/path/to/desired/profile/location&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;gdb&amp;lt;/code&amp;gt; example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;gdb /path/to/Camino.app/Contents/MacOS/Camino&amp;lt;br&amp;gt;break [http://mxr.mozilla.org/camino/source/camino/src/application/MainController.mm#950 MainController.mm:950]&amp;lt;br&amp;gt;run -profile /full/path/to/desired/profile/location&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;Info.plist&amp;lt;/code&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Somewhat similar to the Xcode method above, you can set a custom profile by changing the value of the &amp;lt;code&amp;gt;mozProfileDir&amp;lt;/code&amp;gt; key in your Camino build’s &amp;lt;code&amp;gt;Info.plist&amp;lt;/code&amp;gt;.  Specify a custom name (e.g., &amp;lt;code&amp;gt;CaminoDebug&amp;lt;/code&amp;gt;) and Camino will use &amp;lt;code&amp;gt;~/Library/Application Support/CustomName&amp;lt;/code&amp;gt; for the profile when launched.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;N.B.&amp;#039;&amp;#039;&amp;#039; Because the &amp;lt;code&amp;gt;Info.plist&amp;lt;/code&amp;gt; is regenerated periodically (every time Camino is rebuilt following a pull of new Camino code from the repository, every time Camino is rebuilt following a Gecko build ID change, and any time there are changes made to the &amp;lt;code&amp;gt;Info.plist&amp;lt;/code&amp;gt; itself), the above change will have to be repeated often.&lt;/div&gt;</summary>
		<author><name>Sardisson</name></author>
		
	</entry>
</feed>