Seite 1 von 1

Firefox Erweiterungen?

Verfasst: 24 Feb 2016, 09:50
von larsg
Hi,

hat hier schon jemand erfolgreich unter Windows Firefox-Erweiterungen über OPSI verteilt?
Speziell in den neueren Versionen, 41+, mit denen nur noch signierte Erweiterungen installiert werden können.
Juhu. Wäre ja kein Problem wenn man weiss wie es funktioniert.

Der mir bekannte Weg, die xpi-Datei in das Verzeichnis /browser/extensions zu entpacken, lädt zwar die Erweiterung, deaktiviert sie jedoch weil angeblich nicht verifiziert werden kann. warum auch immer. Wenn ich die Erweiterung händisch installiere klappt es sofort, nach obligatorischem Neustart des Browsers.

Es ist wohl noch ein Zwischenschritt erforderlich den offenbar niemand kennt oder preisgeben mag. Nach 2 Stunden Suche habe ich eher mehr Fragen als vorher.

:? :evil:

Re: Firefox Erweiterungen?

Verfasst: 24 Feb 2016, 16:03
von edvbuo
Wie es in Windows ist kann ich nicht zu 100% sagen aber in Ubuntu muss man in dem Extension Ordner ein Ordner anlegen mit der ID der install-rdf aus der Extension.

Siehe: http://bernaerts.dyndns.org/linux/74-ub ... ommandline

Vielleicht lößt das dein Problem schon.

Re: Firefox Erweiterungen?

Verfasst: 25 Feb 2016, 21:53
von SisterOfMercy
larsg hat geschrieben:Es ist wohl noch ein Zwischenschritt erforderlich den offenbar niemand kennt oder preisgeben mag. Nach 2 Stunden Suche habe ich eher mehr Fragen als vorher.
Yeah, well.. It's a looooong way to Tipperary.

Somewhere around FF 21 there have been some changes to the structure of the folders, and various things did not work anymore after that. You need to set various firefox preferences:

Code: Alles auswählen

// Allow installations of plugins automatically from Firefox directory
pref("extensions.installDistroAddons", true);
pref("extensions.enabledScopes", 15);
pref("extensions.autoDisableScopes", 0);
pref("extensions.shownSelectionUI", true);
Search for what they do exactly, but it will also allow you to install and use extensions in the firefox directory:
"%ProgramFiles32Dir%\Mozilla Firefox\browser\extensions\

The xpi files are just zip files, as edvbuo sais, you need to use the ID in install.rdf

Code: Alles auswählen

<?xml version="1.0"?>

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:em="http://www.mozilla.org/2004/em-rdf#">

  <Description about="urn:mozilla:install-manifest">
    <em:id>abhere2@moztw.org</em:id>
    <em:version>31.0.20150313</em:version>

    <em:targetApplication>
      <Description>
        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
        <em:minVersion>31.0</em:minVersion>
        <em:maxVersion>39.*</em:maxVersion>
      </Description>
    </em:targetApplication>

    <em:name>Add Bookmark Here ²</em:name>
    <em:description>Add a menuitem "Add Bookmark Here..." to Bookmarks Menu.</em:description>
    <em:creator>yuoo2k</em:creator>
    <em:homepageURL>https://addons.mozilla.org/firefox/addon/3880</em:homepageURL>
    <em:optionsURL>chrome://abhere2/content/prefsDialog.xul</em:optionsURL>
    <em:iconURL>chrome://abhere2/skin/abhere32x32.png</em:iconURL>
    <em:type>2</em:type>

  </Description>
</RDF>
This is from AddBookmarkHere2, the em:id is abhere2@moztw.org, and not {ec8030f7-c20a-464f-9b0e-13a3a9e97384}! I've made this mistake myself a few times.

Then there's something which I still haven't figured out.. Installing these extensions, and then logging in as a new user, which does not have a profile on that machine, will set all these extensions to disabled. At least when the user has a profile the extensions get activated, If I recall correctly.

It's a real pain in the ass, and I can't understand why they made it so bloody difficult to deploy extensions. Yeah, I'm also still using Firefox 38 ESR, which I recommend (less changes every six weeks, or whatever the release schedule is). The mandatory signing of extensions shouldn't be such a big deal, because I think there is a preference for that. Or import your own certificate in the mozilla certstore, and sign every extension with that.

Re: Firefox Erweiterungen?

Verfasst: 26 Feb 2016, 09:08
von larsg
I installed the Extension (which works perfectly fine manually)
Restarted FF -> extension loaded & enabled
Closed FF
Moved the extensions' directory
Reopened FF -> extension gone
Closed FF
Moved the extensions' directory back
Reopened FF -> extension loaded & disabled, without any way to enable.

Just the same as unzipping the extension. And if the folder name isn't right, it wouldn't even load.

We are using Firefox 44, i will try with ESR but i doubt i will have more luck with that one.

Re: Firefox Erweiterungen?

Verfasst: 26 Feb 2016, 12:55
von SisterOfMercy
larsg hat geschrieben:Reopened FF -> extension loaded & disabled, without any way to enable.
Huh? Without any way to enable? Weird.
larsg hat geschrieben:We are using Firefox 44, i will try with ESR but i doubt i will have more luck with that one.
Don't try ESR for that, it's the same, but you don't have to adapt to new options very often. It's just less work.

Re: Firefox Erweiterungen?

Verfasst: 26 Feb 2016, 16:28
von andré
Ich setze das bei uns mittels dem CCK-Addon um. Die Autoconfig-Variante wird einfach mit ins Firefox-Verzeichnis gelegt und kann a) enthaltene Addons automatisch in den Profilen installieren oder b) das aus dem Firefox entfernte Verhalten mit dem distribution-Ordner wiederherstellen.

https://mike.kaply.com/cck2/

Re: Firefox Erweiterungen?

Verfasst: 03 Mär 2016, 14:35
von larsg
andré hat geschrieben:Ich setze das bei uns mittels dem CCK-Addon um. Die Autoconfig-Variante wird einfach mit ins Firefox-Verzeichnis gelegt und kann a) enthaltene Addons automatisch in den Profilen installieren oder b) das aus dem Firefox entfernte Verhalten mit dem distribution-Ordner wiederherstellen.

https://mike.kaply.com/cck2/
Schaut zumindest mal interessant aus.
Funktioniert mit der aktuellen Version und ist auch für kommerziellen Einsatz kostenfrei? Werd da grad auf Anhieb nicht schlau draus...

Re: Firefox Erweiterungen?

Verfasst: 03 Mär 2016, 16:43
von andré
larsg hat geschrieben:
andré hat geschrieben:Ich setze das bei uns mittels dem CCK-Addon um. Die Autoconfig-Variante wird einfach mit ins Firefox-Verzeichnis gelegt und kann a) enthaltene Addons automatisch in den Profilen installieren oder b) das aus dem Firefox entfernte Verhalten mit dem distribution-Ordner wiederherstellen.

https://mike.kaply.com/cck2/
Schaut zumindest mal interessant aus.
Funktioniert mit der aktuellen Version und ist auch für kommerziellen Einsatz kostenfrei? Werd da grad auf Anhieb nicht schlau draus...
Ja, ich habe hier Firefox 42.0.2 im Einsatz, und damit funktioniert das einwandfrei. Das Addon und auch die Autoconfig-Konfiguration die damit erstellt wird ist kostenfrei, wenn du aber "richtigen" Support haben willst, dann kostet das. Bei kleineren Fragen kannst du Mike Kaply auch auf Englisch in seinem Blog fragen. Er hat dort auch schon mal Codeschnippsel veröffentlicht, für Sachen, die nicht so aufwendig waren. Z.B. wenn das Addon aus jedem Profil ein bestimmtes Addon deinstallieren soll.