Linux App Finder - installhttp://linuxappfinder.com/taxonomy/term/117/0
enNeed Help Determining a Browser's Network Protocol Supporthttp://linuxappfinder.com/blog/need_help_determining_a_browsers_network_protocol_support
<p>I'm working on adding <a href="http://linuxappfinder.com/package/apturl">apturl</a> support to Linux App Finder so programs in a deb repository can be installed just by clicking a link. Since not every system will have apturl installed, I'd like to be able to detect whether or not the browser can handle an apt: link and use the information to display appropriate instructions. Does anyone know how to do that?<!--break--></p>
<div class="google_ads_blog" align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-4519499759658771";
google_alternate_ad_url = "http://linuxappfinder.com/valueclick_rectangle.html";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="0634616448";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>Right now I plan to have two potential links. The primary one will say Install Now and have an apt:packagename formatted link. The other will link to instructions on how to setup apturl and install apps directly from your browser.</p>
<p>The checks I currently have planned are:<br />
- Determine that Linux is the OS<br />
- Determine whether there is a handler for the apt: protocol.</p>
<p>apturl currently only supports <a href="http://linuxappfinder.com/package/firefox">Firefox</a> and is in the Ubuntu Gutsy Gibbon repositories. <a href="http://linuxappfinder.com/package/synaptic">Synaptic</a> is required as well, although it doesn't appear to be listed as a dependancy. Hopefully the apturl team can remove their dependancy on Synaptic in the future because it adds unnecessary overhead to the installation.</p>
<p>apt: support is registered in Firefox through the network.protocol-handler.app.apt resource in the /usr/share/firefox/defaults/pref/apturl.ps file. My problem is that I can't figure out how to access that setting through javascript. If anyone has some ideas to determine whether or not the browser knows how to handle the apt: protocol please let me know.</p>
<p>Even though Firefox is the only supported browser right now, I'm also looking for ways to detect apt: handling in <a href="http://linuxappfinder.com/package/opera">Opera</a> and <a href="http://linuxappfinder.com/package/konqueror">Konqueror</a>. I expect that they will be supported in the future.</p>
<p><!-- Submit to Digg and del.icio.us Start --></p>
<div align="center"><a href="http://del.icio.us/post?url=http://linuxappfinder.com/blog/need_help_determining_a_browsers_network_protocol_support&amp;title=Need Help Determining a Browser's Network Protocol Support" target="_blank"><img src="http://linuxappfinder.com/images/delicious.gif" style="margin: 10px 3px 10px 3px; float:center;" border="0" /></a><a href="http://www.spurl.net/spurl.php?url=http://linuxappfinder.com/blog/need_help_determining_a_browsers_network_protocol_support&amp;title=Need Help Determining a Browser's Network Protocol Support" target="_blank"><img src="http://linuxappfinder.com/images/spurl.0.png" style="margin: 10px 3px 10px 3px; float:center;" border="0" /></a><a href="http://digg.com/submit?phase=2&amp;url=http://linuxappfinder.com/blog/need_help_determining_a_browsers_network_protocol_support&amp;title=Need Help Determining a Browser's Network Protocol Support&amp;topic=linux_unix" target="_blank"><img src="http://linuxappfinder.com/images/digg-standard-button.png" style="margin: 10px 3px 10px 3px; float:center;" border="0" /></a><a href="http://www.furl.net/storeIt.jsp?u=http://linuxappfinder.com/blog/need_help_determining_a_browsers_network_protocol_support&amp;t=Need Help Determining a Browser's Network Protocol Support" target="_blank"><img src="http://linuxappfinder.com/images/furl.0.png" style="margin: 10px 3px 10px 3px; float:center;" border="0" /></a><a href="http://reddit.com/submit?url=http://linuxappfinder.com/blog/need_help_determining_a_browsers_network_protocol_support&amp;title=Need Help Determining a Browser's Network Protocol Support" target="_blank"><img src="http://linuxappfinder.com/images/reddit.png" style="margin: 10px 3px 10px 3px; float:center;" border="0" /></a></div>
<p><!-- Submit to Digg and del.icio.us End --></p>
http://linuxappfinder.com/blog/need_help_determining_a_browsers_network_protocol_support#commentaptapturlBlogsdebinstallWed, 18 Jul 2007 09:45:55 -0700chadm629 at http://linuxappfinder.com