tis-libreoffice-fileassoc 1.0.0-1

  • package : tis-libreoffice-fileassoc
  • version : 1.0.0-1
  • architecture : all
  • locale :
  • description : Association de fichiers avec LibreOffice
  • maintainer : Alexandre Gauvrit
  • date : 2018-02-27 19:01:57
  • min_wapt_version :
  • min_os_version :
  • max_os_version :
  • impacted_process :

setup.py

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

uninstallkey = []

def install():
    print('installing tis-libreoffice-fileassoc')
    word_list_assoc = ('.doc','.docx','.dot','.dotx','.odt','.rtf')
    excel_list_assoc = ('.ods','.xla','.xls','.xlm','.xlsx')
    powerpoint_list_assoc = ('.odp','.pot','.potx','.pps','.ppsx','.ppt','.pptx')
    for soft in installed_softwares('LibreOffice'):
        path_libreoffice = install_location(soft['key'])

    swriter = makepath(path_libreoffice,'program','swriter.exe')
    scalc = makepath(path_libreoffice,'program','scalc.exe')
    simpress = makepath(path_libreoffice,'program','simpress.exe')

    for ext in word_list_assoc:
        register_ext('LibreOffice',ext,'"{kwarg}" -o "%1"'.format(kwarg=swriter))

    for ext in powerpoint_list_assoc:
        register_ext('LibreOffice',ext,'"{kwarg}" -o "%1"'.format(kwarg=simpress))

    for ext in excel_list_assoc:
        register_ext('LibreOffice',ext,'"{kwarg}" -o "%1"'.format(kwarg=scalc))
    

Changelog

No changelog
    

manifest.sha256

setup.py 44958fbb29820c9580f7498f38c49a25c3e4c06a5408dccdbb9d73aa885f3b57
WAPT/certificate.crt 79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4
WAPT/wapt.psproj 795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b
WAPT/control 8bdac3584d8a256548da2f3d5ba2f3b5d3e41b1e3778444110c5260209e51cc4