<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How can I close a specific browser window under linux</title>
	<link>http://ask.metafilter.com/90579/How-can-I-close-a-specific-browser-window-under-linux/</link>
	<description>Comments on Ask MetaFilter post How can I close a specific browser window under linux</description>
	<pubDate>Mon, 05 May 2008 09:36:42 -0800</pubDate>
	<lastBuildDate>Mon, 05 May 2008 09:36:42 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How can I close a specific browser window under linux</title>
		<link>http://ask.metafilter.com/90579/How-can-I-close-a-specific-browser-window-under-linux</link>	
		<description>Can I control a browser from an application under linux. &lt;br /&gt;&lt;br /&gt; My application has an option to run as an http server, and kick off a browser that points to itself using (for example) /usr/bin/mozilla.&lt;br&gt;
I want to add a quit button to the generated html, which tells the application to quit serving, then closes the browser, window, or tab that was created.&lt;br&gt;
Obviously I dont want to quit any other windows or tabs if the user is doing something else at the time.&lt;br&gt;
Stopping the server is no problem, but I&apos;m hitting a roadblock closing down the browser side. Javascript wont let me close the current window, and I cant find any command line options to mozilla that let me do what I want.&lt;br&gt;
Is there something I&apos;m missing, or a better approach to the problem?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.90579</guid>
		<pubDate>Mon, 05 May 2008 09:19:53 -0800</pubDate>
		<dc:creator>yetanother</dc:creator>
		
			<category>linux</category>
		
			<category>mozilla</category>
		
			<category>remotecontrol</category>
		
	</item> <item>
		<title>By: fogster</title>
		<link>http://ask.metafilter.com/90579/How-can-I-close-a-specific-browser-window-under-linux#1329843</link>	
		<description>Rather than &quot;remotely controlling&quot; the browser, couldn&apos;t you have the script that starts it also kill it?&lt;br&gt;
&lt;br&gt;
You could have the &quot;quit&quot; button send a signal to the backend daemon you&apos;ve written, which would read the process ID Firefox got started as (since it started it!) and send a kill signal to it.&lt;br&gt;
&lt;br&gt;
The &lt;i&gt;big&lt;/i&gt; wrinkle is that they may very well have opened other tabs and be irritated. I think it may be better design to just display a, &quot;The server has been stopped. You may now close your browser window&quot; message. I don&apos;t know the specifics, but I&apos;d be annoyed if the browser just closed.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90579-1329843</guid>
		<pubDate>Mon, 05 May 2008 09:36:42 -0800</pubDate>
		<dc:creator>fogster</dc:creator>
	</item><item>
		<title>By: jrishel</title>
		<link>http://ask.metafilter.com/90579/How-can-I-close-a-specific-browser-window-under-linux#1329844</link>	
		<description>record the pid when mozilla is launched, and have the server kill the process via the pid before it shuts down.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90579-1329844</guid>
		<pubDate>Mon, 05 May 2008 09:36:42 -0800</pubDate>
		<dc:creator>jrishel</dc:creator>
	</item><item>
		<title>By: Blazecock Pileon</title>
		<link>http://ask.metafilter.com/90579/How-can-I-close-a-specific-browser-window-under-linux#1329847</link>	
		<description>When the browser process is started, store the browser&apos;s process ID. When the user hits to quit button, use the PID to kill it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90579-1329847</guid>
		<pubDate>Mon, 05 May 2008 09:37:43 -0800</pubDate>
		<dc:creator>Blazecock Pileon</dc:creator>
	</item><item>
		<title>By: yetanother</title>
		<link>http://ask.metafilter.com/90579/How-can-I-close-a-specific-browser-window-under-linux#1329854</link>	
		<description>Recording the PID wont work, for the reasons outlined by fogster - I really don&apos;t want to kill any other windows that have been opened, or that were open before mine.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90579-1329854</guid>
		<pubDate>Mon, 05 May 2008 09:41:39 -0800</pubDate>
		<dc:creator>yetanother</dc:creator>
	</item><item>
		<title>By: Blazecock Pileon</title>
		<link>http://ask.metafilter.com/90579/How-can-I-close-a-specific-browser-window-under-linux#1329857</link>	
		<description>You could embed an HTML rendering engine inside your own client application, and then you don&apos;t have to worry about Mozilla.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90579-1329857</guid>
		<pubDate>Mon, 05 May 2008 09:43:33 -0800</pubDate>
		<dc:creator>Blazecock Pileon</dc:creator>
	</item><item>
		<title>By: Tomorrowful</title>
		<link>http://ask.metafilter.com/90579/How-can-I-close-a-specific-browser-window-under-linux#1329865</link>	
		<description>I think fogster&apos;s &quot;And now you can close this window&quot; suggestion is spot-on. I, for one, would be somewhere between annoyed and angry if my browser killed itself - in particular, I&apos;d want to see &quot;The server successfully shut down&quot; so I know that, y&apos;know, my browser didn&apos;t just &lt;i&gt;crash&lt;/i&gt; on me.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90579-1329865</guid>
		<pubDate>Mon, 05 May 2008 09:49:19 -0800</pubDate>
		<dc:creator>Tomorrowful</dc:creator>
	</item>
	</channel>
</rss>
