Standard way to open a folder window in linux?
<p>I want to open a folder window, in the appropriate file manager, from within a cross-platform (windows/mac/linux) Python application.</p>

<p>On OSX, I can open a window in the finder with</p>

<pre><code>os.system('open "%s"' % foldername)
</code></pre>

<p>and on Windows with</p>

<pre><code>os.startfile(foldername)
</code></pre>

<p>What about unix/linux? Is there a standard way to do this or do I have to special case gnome/kde/etc and manually run the appropriate application (nautilus/konqueror/etc)?</p>

<p>This looks like something that could be specified by the <a href="http://freedesktop.org">freedesktop.org</a> folks (a python module, similar to <code>webbrowser</code>, would also be nice!).</p>

<pre><code>os.system('xdg-open "%s"' % foldername)
</code></pre>

<p><code>xdg-open</code> can be used for files/urls also</p>
