Détails du package smp-config-for-firefox 4
retour Revenir à la liste des packages

smp-config-for-firefox

package           : smp-config-for-firefox
version           : 4
architecture      : all
section           : base
priority          : optional
maintainer        : Simon Fonteneau
description       : Configure Firefox (force wpad, diable migration from ie, disable update, disable pdf ,disable ipv6 ...)
depends           : smp-firefox-esr
conflicts         : 
maturity          : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: CB036E8369345EFDFD17A92F9843174E5D06C987
signature         : TDVQNvtxns6p2ZHuNbG5WYfLa/+Epbs4cfXnPxnuMpwRIYLXd12PCMcnvUI6GG4Mq1Rt907E33MJ
 FrOVxiIbhPqcEYRqs2i0ZhWDEVeq89zLnFGXi15D8pRoNs/czj2b90WPtTw/0mPhGg07Zo9AsYT5
 58iRh/s7noTsI4qgSalWWOQ/c+mUgmFq23YmY9reHntrvN78Uyg4J4BN/F5EY8yejrmdMeXrR2KK
 6sJVHZsUG/2WSCsX9qIB+0nD7y1Inp+dRSDrKWNtt/rnq7kEf0Qr50fi6GT2Ue2yNVFKhq7vc3C6
 2lF8ejbs1rQU9HhtLpyhnPI7T4OAF+FCCdgOfQ==
signature_date    : 20170627-115300





setup.py

# -*- coding: UTF-8 -*-
from setuphelpers import *

uninstallkey = []

def install():

    for uninstallkey in installed_softwares('Mozilla Firefox'):
        locationfirefox =  uninstallkey['install_location']

        print("Disabling auto update")
        filecopyto("mozilla.cfg",makepath(locationfirefox))
        filecopyto("local-settings.js",makepath(locationfirefox,"defaults","pref"))

        print ("Disabling profile migration from ie")
        filecopyto("override.ini",makepath(locationfirefox,"browser"))

        print ("Override User UI")
        ensure_dir(makepath(locationfirefox,"browser","defaults","profile","chrome",""))
        filecopyto("userChrome.css",makepath(locationfirefox,"browser","defaults","profile","chrome"))

        """
        print ("Deploy extensions")
        ensure_dir(makepath(installlocation,"browser","extensions",""))
        copytree2("extensions",makepath(installlocation,"browser","extensions"))
        """