Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Auto update extension from XULRunner

42 views
Skip to first unread message

Alexander N. Treyner

unread,
Mar 26, 2007, 4:38:14 AM3/26/07
to
Hi,
I'm writing application using XULRunner 1.8.1 + extensions for it.
I got Extension Manager to work within XULRunner, and I'm able to update
installed Extensions from Extension Manager via right click on Extension
and "Find Update" command, but I don't understand under which condition
XULRunner will check for updates on opening my application (If it should).
I tried to play with next pref:
pref("extensions.update.interval", 60);

I supposed that interval measured in seconds, so should it check updates
every 60 seconds?

I got prompt saying "Update Found" only twice during 3 days that I work
with my application, but extension version changed dozens times.

Please help me figure out how it work,

Thanks,

--
Alexander N. Treyner

Brian King

unread,
Mar 26, 2007, 1:18:48 PM3/26/07
to dev-pl...@lists.mozilla.org

Maybe I am stating the obvious, but just in case ...

There are a couple of other relevant prefs:

- extensions.update.enabled
- extensions.update.notifyUser

Have you turned these on?

--
Brian King
www.mozdev.org - free project hosting for the Mozilla community

mark....@gmail.com

unread,
Mar 27, 2007, 12:33:53 AM3/27/07
to
On Mar 26, 4:38 am, "Alexander N. Treyner" <a...@treyner.israel.net>
wrote:

Brain pointed out some preferences you'll need to turn on. You might
need more. You will may alos need to use "branding" DTD
and .properties files (if your displaying the extension manager UI).
More information here:
http://developer.mozilla.org/en/docs/XULRunner_tips

Mark Finkle

mark....@gmail.com

unread,
Mar 27, 2007, 12:35:43 AM3/27/07
to
>
> Brain pointed out some preferences you'll need to turn on. You might
> need more. You will may alos need to use "branding" DTD
> and .properties files (if your displaying the extension manager UI).
> More information here:http://developer.mozilla.org/en/docs/XULRunner_tips

s/Brain/Brian

Although, I know Brian has a brain

Alexander N. Treyner

unread,
Mar 27, 2007, 3:59:11 AM3/27/07
to Brian King, dev-pl...@lists.mozilla.org

notifyUser was missed for me, but when I added it - I still have no
automatic update. Only manual. Here my prefs:

// Extension
pref("xpinstall.enabled", true);
pref("xpinstall.dialog.confirm",
"chrome://mozapps/content/xpinstall/xpinstallConfirm.xul");
pref("xpinstall.dialog.progress.skin",
"chrome://mozapps/content/extensions/extensions.xul?type=themes");
pref("xpinstall.dialog.progress.chrome",
"chrome://mozapps/content/extensions/extensions.xul?type=extensions");
pref("xpinstall.dialog.progress.type.skin", "Extension:Manager-themes");
pref("xpinstall.dialog.progress.type.chrome",
"Extension:Manager-extensions");
pref("extensions.update.enabled", true);
pref("extensions.update.notifyUser",true);
//pref("extensions.update.interval", 86400);
pref("extensions.update.interval", 60);
pref("extensions.dss.enabled", false);
pref("extensions.dss.switchPending", false);
pref("extensions.ignoreMTimeChanges", false);
pref("extensions.logging.enabled", false);
pref("general.skins.selectedSkin", "classic/1.0");
// NB these point at AMO
pref("extensions.update.url",
"chrome://mozapps/locale/extensions/extensions.properties");
pref("extensions.getMoreExtensionsURL",
"chrome://mozapps/locale/extensions/extensions.properties");
pref("extensions.getMoreThemesURL",
"chrome://mozapps/locale/extensions/extensions.properties");

Thanks,
Alex

Brian King

unread,
Mar 27, 2007, 5:45:30 PM3/27/07
to dev-pl...@lists.mozilla.org

Which seems to correlate with :

http://developer.mozilla.org/en/docs/XULRunner_tips#Extension_Manager

I've not done this (yet), so I would just be speculating otherwise.

Alexander N. Treyner

unread,
Mar 28, 2007, 12:04:04 PM3/28/07
to

Could you point me which step I should do (in general) in order to
get/create mechanism for auto update. I tried to figure out how it work
in Firefox, but quickly get lost.

Thanks,

Alex.

0 new messages