<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xster.net &#187; Snow Leopard</title>
	<atom:link href="http://tech.xster.net/tag/snow-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.xster.net</link>
	<description>Never relearn twice</description>
	<lastBuildDate>Mon, 30 Aug 2010 00:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Deploy PyQt Applications on Mac OS X with PyInstaller!</title>
		<link>http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/</link>
		<comments>http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 07:20:39 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[PIL]]></category>
		<category><![CDATA[py2app]]></category>
		<category><![CDATA[PyInstaller]]></category>
		<category><![CDATA[PyQt]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=218</guid>
		<description><![CDATA[The interweb seem to incline on py2app when it come to deploying applications on mac. I&#8217;ve tried to make a single deployable .app file for my application for a long time trying to follow these instructions from ars technica. I&#8217;m not a hacker and just want to produce a deployable usable application for others to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pyinstaller.org/"><img class="alignright size-medium wp-image-221" title="PyInstaller" src="http://tech.xster.net/wp-content/uploads/2010/04/logo-300x60.png" alt="" width="240" height="48" /></a>The interweb seem to incline on <a href="http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html">py2app</a> when it come to deploying applications on mac. I&#8217;ve tried to make a single deployable .app file for my application for a long time trying to follow <a href="http://arstechnica.com/open-source/guides/2009/03/how-to-deploying-pyqt-applications-on-windows-and-mac-os-x.ars/2">these instructions from ars technica</a>. I&#8217;m not a hacker and just want to produce a deployable usable application for others to use. And it seems py2app from MacPorts wasn&#8217;t able to surmount the Snow Leopard&#8217;s 64-bit compatibility issue.</p>
<p>And then, I was slacking off while studying for my final and out of nowhere I found <a href="http://www.pyinstaller.org/">PyInstaller</a>&#8216;s explicit support for PyQt and its recent support for the mac. And after trying, almost everything works out without much of a kink. Credit goes to <a href="http://diotavelli.net/PyQtWiki/PyInstallerOnMacOSX">ChrisWayg</a> who produced an amazingly complete and up-to-date set of instructions to follow. I&#8217;m merely telling how my application did using his instructions (April 2010) and hopefully doing my part to draw more attention to the excellent <a href="http://www.pyinstaller.org/">PyInstaller</a>.<span id="more-218"></span></p>
<h3>My Application</h3>
<p>A PyQt application to help photographers apply custom watermarks in a manual but in an assisted way.</p>
<p>Uses:</p>
<ul>
<li>PIL 1.1.7</li>
<li>Qt4 4.6.2</li>
<li>PyQt4 4.7.2</li>
<li>SIP 4.10.1</li>
</ul>
<p>All from MacPorts on Python 2.6.5, OSX 10.6.3.</p>
<h3>Prepare PyInstaller</h3>
<p>PyInstaller is kinda special in that it&#8217;s not installed anywhere. It&#8217;s just a bunch of Python scripts that work on stuff in place. While you&#8217;re at it, read the <a href="http://www.pyinstaller.org/export/latest/tags/1.4/doc/Manual.html">manual</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> http:<span style="color: #000000; font-weight: bold;">//</span>svn.pyinstaller.org<span style="color: #000000; font-weight: bold;">/</span>trunk ~<span style="color: #000000; font-weight: bold;">/</span>PyInstaller</pre></div></div>

<p>Or put it somewhere you want.</p>
<p>Then you need to build the bootloaders. If you&#8217;re making PyQt applications, you probably have XCode already. Anyway, you need it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> source<span style="color: #000000; font-weight: bold;">/</span>linux
python Make.py
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..
python Configure.py</pre></div></div>

<h3>Making your Application</h3>
<p><a href="http://www.pyinstaller.org/ticket/158">So far</a>, PyInstaller has a problem of not showing your application at the front when you run it. You can fix it in your own code by adding</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">form.raise_<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>right after</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">form.show<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>with &#8220;form&#8221; being whatever you called your instance of MainWindow().</p>
<p>Like with py2app, you gotta first make a &#8220;spec file&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python Makespec.py <span style="color: #660033;">--onefile</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>YourApplication.py</pre></div></div>

<p>This will make a YourApplication/YourApplication.spec file in your PyInstaller folder.<br />
To make it work on mac, add</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #dc143c;">sys</span>.<span style="color: #dc143c;">platform</span>.<span style="color: black;">startswith</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;darwin&quot;</span><span style="color: black;">&#41;</span>:
    app = BUNDLE<span style="color: black;">&#40;</span>exe,
                 appname=<span style="color: #483d8b;">'WhateverYouWantToCallIt'</span>,
                 version=<span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span></pre></div></div>

<p>at the bottom.</p>
<p>For my application, it made 70 files inside the .app file on default. &#8211;onefile makes it more neat and 3 times smaller in size! but it does make it a bit slower. If you care to make it as fast as possible, leave out that option but you have to <a href="http://www.pyinstaller.org/ticket/155">fix a bug</a> yourself.</p>
<p>Finally, build the application!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python Build.py YourApplication<span style="color: #000000; font-weight: bold;">/</span>YourApplication.spec</pre></div></div>

<p>This will make your application and leave a YourApplication.app in your PyInstaller folder.</p>
<h3>Fix the Application</h3>
<p>Put your own nice icon on the application. Copy your graphic, right-click your application and choose Get Info, click the icon and paste the graphic.</p>
<p>Open the content of your application, open Contents/Info.plist, uncheck &#8220;Application is background only&#8221; and save. If you&#8217;re using a plain text editor, change LSBackgroundOnly to false.</p>
<p>There is only one last problem to deal with on mac. You have to copy the qt_menu.nib file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">locate</span> qt_menu.nib</pre></div></div>

<p>to find it. If you use MacPorts, it&#8217;s probably somewhere like /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/Resources/qt_menu.nib</p>
<p>Copy it to your YourApplication.app/Contents/Resources</p>
<p>Boom, you can double click your application and it will run!</p>
<p>Ok, one last problem, I swear. When you run, it shows 2 icons on the dock&#8230; pretty ugly. <a href="http://www.pyinstaller.org/ticket/156">This hack</a> can fix it, but it&#8217;s not perfect as it leaves junk on your computer. Hopefully PyInstaller can address it soon.</p>
<h3>Conclusion</h3>
<p>The program is beautiful! You don&#8217;t have to worry about your Python plug-ins, your 64-bitness, anything (mostly). It just works. I have yet to figure out how to make 32-bit binaries on 64-bit systems and how to make upx work properly to reduce executable size. I&#8217;m currently running at 32mb for an application that really should be 1mb. But then again, it&#8217;s packaging a whole new GUI framework that doesn&#8217;t exist on the target computer with the application. Consider Skype (yes, it&#8217;s infinitely more complex than my thing), it is still 43mb.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;title=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;t=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21+-+http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;n=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;title=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;title=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;t=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;title=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;title=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/&amp;title=Deploy+PyQt+Applications+on+Mac+OS+X+with+PyInstaller%21&amp;summary=The%20interweb%20seem%20to%20incline%20on%20py2app%20when%20it%20come%20to%20deploying%20applications%20on%20mac.%20I%27ve%20tried%20to%20make%20a%20single%20deployable%20.app%20file%20for%20my%20application%20for%20a%20long%20time%20trying%20to%20follow%20these%20instructions%20from%20ars%20technica.%20I%27m%20not%20a%20hacker%20and%20just%20want%20to%20produce%20a%20deployable%20usable%20application%20f&amp;source=Xster.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PyQt and Snow Leopard</title>
		<link>http://tech.xster.net/tips/pyqt-and-snow-leopard/</link>
		<comments>http://tech.xster.net/tips/pyqt-and-snow-leopard/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 23:11:12 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[32]]></category>
		<category><![CDATA[64]]></category>
		<category><![CDATA[i386]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[PyQt]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=148</guid>
		<description><![CDATA[There are some 64-bit related issues when using PyQt and Snow Leopard. There&#8217;s the way to resolve it by reverting to 32-bits: Get the latest versions of PyQt and SIP. You need Qt installed of course. Configure SIP using python configure.py --arch i386 Configure PyQt using python configure.py --use-arch=i386 Finally, make sure your python is [...]]]></description>
			<content:encoded><![CDATA[<p>There are some 64-bit related issues when using PyQt and Snow Leopard. There&#8217;s the way to resolve it by reverting to 32-bits:</p>
<ol>
<li>Get the <a href="http://www.riverbankcomputing.co.uk/software/pyqt/download">latest versions</a> of PyQt and SIP. You need Qt installed of course.</li>
<li>Configure SIP using</li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python configure.py <span style="color: #660033;">--arch</span> i386</pre></div></div>

<li>Configure PyQt using</li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python configure.py <span style="color: #660033;">--use-arch</span>=i386</pre></div></div>

<li>Finally, make sure your python is running in 32-bit mode because current Qt doesn&#8217;t support 64-bit mode. Add

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">VERSIONER_PYTHON_PREFER_32_BIT</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span></pre></div></div>

<p> to your .bash_profile in your home directory</p>
</li>
<li>If your Python still refuses to run in 32 bit mode, try

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">arch</span> <span style="color: #660033;">-i386</span> python</pre></div></div>

</li>
</ol>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;t=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PyQt+and+Snow+Leopard+-+http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;n=PyQt+and+Snow+Leopard&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;t=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://tech.xster.net/tips/pyqt-and-snow-leopard/&amp;title=PyQt+and+Snow+Leopard&amp;summary=There%20are%20some%2064-bit%20related%20issues%20when%20using%20PyQt%20and%20Snow%20Leopard.%20There%27s%20the%20way%20to%20resolve%20it%20by%20reverting%20to%2032-bits%3A%0D%0A%0D%0AGet%20the%20latest%20versions%20of%20PyQt%20and%20SIP.%20You%20need%20Qt%20installed%20of%20course.%0D%0AConfigure%20SIP%20using%0D%0Apython%20configure.py%20--arch%20i386%0D%0AConfigure%20PyQt%20using%0D%0Apython%20configure.py%20&amp;source=Xster.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/pyqt-and-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Empty Home Directory in Windows Using Boot Camp 3.0</title>
		<link>http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/</link>
		<comments>http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 22:29:47 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[.Xauthority]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Boot Camp]]></category>
		<category><![CDATA[Bootcamp]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[empty]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=126</guid>
		<description><![CDATA[Just got Snow Leopard and installed Boot Camp 3.0 on Windows? Boot Camp 3.0 is definitely a well welcomed update. The trackpad works much better now with 2 finger tap for secondary click, it finally works like in OS X. Even better, you can now access HFS+ without third party apps in Windows. Definitely nice [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-127 alignleft" title="ls -a" src="http://tech.xster.net/wp-content/uploads/2009/09/Screen-shot-2009-09-13-at-6.22.14-PM.png" alt="ls -a" width="155" height="204" /></p>
<p>Just got Snow Leopard and installed Boot Camp 3.0 on Windows? Boot Camp 3.0 is definitely a well welcomed update. The trackpad works much better now with 2 finger tap for secondary click, it finally works like in OS X. Even better, you can now access HFS+ without third party apps in Windows. Definitely nice for Windows 7 x64 users that MacDrive doesn&#8217;t even support. But one problem that seems to trouble people in the forums is that navigating to /Users/[yourname] in Windows shows an empty folder. You can&#8217;t access your music or pictures or anything from Windows.</p>
<p>One possibility is the presence of a .Xauthority file in your $HOME directory. Delete the file and you may access your home directory in Windows. Remember that running X11 will recreate the file. Delete it again.<span id="more-126"></span></p>
<p>To automate the whole process, consider creating a script that lets you boot into Windows worry free.</p>

<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Finder&quot;</span>
	<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">exists</span> <span style="color: #0066ff;">file</span> <span style="color: #009900;">&quot;~/.Xauthority&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
		<span style="color: #0066ff;">delete</span> <span style="color: #0066ff;">file</span> <span style="color: #009900;">&quot;~/.Xauthority&quot;</span>
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
<span style="color: #0066ff;">do shell script</span> <span style="color: #009900;">&quot;bless -mount /Volumes/[your Windows device]/ -legacy -setBoot -nextonly&quot;</span> <span style="color: #ff0033; font-weight: bold;">with</span> administrator privileges
<span style="color: #0066ff;">do shell script</span> <span style="color: #009900;">&quot;shutdown -r now&quot;</span> <span style="color: #ff0033; font-weight: bold;">with</span> administrator privileges</pre></div></div>

<p>Put this in AppleScript editor and save it as a .app to make it executable. You can manpage the bless command for more options. You can also change the icon like any other app. At that point, you can invoke this via QuickSilver and a GUI dialog will prompt you for password.</p>
<p>It&#8217;s also possible that there are no .Xauthority files in the subdirectories so simply type in explorer the subdirectories to access them directly. ie: D:/Users/[you]/Desktop</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;title=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;t=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0+-+http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;n=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;title=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;title=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;t=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;title=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;title=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/&amp;title=Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0&amp;summary=%0D%0A%0D%0AJust%20got%20Snow%20Leopard%20and%20installed%20Boot%20Camp%203.0%20on%20Windows%3F%20Boot%20Camp%203.0%20is%20definitely%20a%20well%20welcomed%20update.%20The%20trackpad%20works%20much%20better%20now%20with%202%20finger%20tap%20for%20secondary%20click%2C%20it%20finally%20works%20like%20in%20OS%20X.%20Even%20better%2C%20you%20can%20now%20access%20HFS%2B%20without%20third%20party%20apps%20in%20Windows.%20Def&amp;source=Xster.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
