On 09/23/2012 11:51 AM, Cruz, Jaime wrote:
> Cruz, Jaime wrote:
...
>> What it apparently wants to do is launch the Ubuntu Software Center to
>> do the install.  I did the changes suggested by WaltS in an earlier
>> thread and now it's prompting me for which application it should launch.
>> Unfortunately, I can't figure out how to tell it to launch the Software
>> Center.
>>
>> Chrome was able to figure it out, but I can't seem to see the settings
>> it is using... no way to list "Helper Apps" that I can see in that browser.
>>
> 
> FOUND IT!!  /usr/bin/software-center
> 
> It's all working now.  Thanks for the hints and assistance.
> 

I see you got it working. However if you change to another profile you
will need to do it all again. An easy way to get around this is to add
the registration in your user.js file in your profile directory.

First install apturl:

$ sudo apt-get install apturl

Add the following to your existing user.js if you already have one, if
not open gedit and paste, then save as user.js in your seamonkey profile
directory (~/.mozilla/seamonkey/<profile>/user.js:

<code>
# register protocol:
http://kb.mozillazine.org/Register_protocol#Firefox_3.5_and_above
# network.protocol-handler.expose.foo -> Value -> false
# network.protocol-handler.external.foo -> Value -> true
# network.protocol-handler.app.foo -> Value -> /path/to/app

pref("network.protocol-handler.expose.apt",false);
pref("network.protocol-handler.external.apt",true);
pref("network.protocol-handler.app.apt","/usr/bin/apturl");
</code>

Note: the first line is all one line & the first 4 lines are comments so
that you'll remember where you got the information from & the format.

You can do the same for your non-ubuntu firefox profile(s).

Remove any 'apt' that you hand installed in about:config (right click
and click reset). Restart SeaMonkey/Firefox with the user.js in the
profile directory. When you click on an apturl you'll be prompted for
the application. Click 'browse' and 'File System' and then to /usr/bin
scroll down & click on 'apturl' (full path is as above: /usr/bin/apturl.
Tick the box to 'always use this application' & you're good to go.

That way you won't need to mess with the Ubuntu software center & when
you click on an apt:<package> you'll get prompted for your password &
the install will proceed.

Note: the Ubuntu packaged Firefox & SeaMonkey include a extension called
'ubufox'. That extension (which is the first one I always disable) adds
the 'apt' protocol settngs by default.

You might also find this of interest (recommended by the Ubuntu apt wiki
- <https://wiki.ubuntu.com/AptUrl>):

http://appnr.com/
 be sure to see:
   http://blog.appnr.com/about/ http://blog.appnr.com/privacy/

I can't vouch for the site - I just found it from the wiki. I did test
by installing Amarok (using SeaMonkey of course) & it worked fine; goes
to the ubuntu repository, downloads & installs if from there.

As with all applications of this type, use the apt protocol & apturl at
your own risk. https://launchpad.net/ubuntu/+source/apturl/+bugs

_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to