Changeset 5942


Ignore:
Timestamp:
Sep 27, 2017, 12:26:46 PM (2 years ago)
Author:
hectorgh
Message:

fixing libreoffice old configuration

Location:
lliurex-artwork-defaults/trunk/fuentes/debian
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • lliurex-artwork-defaults/trunk/fuentes/debian/control

    r2718 r5942  
    2020Section: x11
    2121Depends: libc6 (>= 2.14), libcairo2 (>= 1.2.4), libexo-1-0 (>= 0.5.0), libgarcon-1-0 (>= 0.1.2), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.35.9), libgtk2.0-0 (>= 2.24.0), libstdc++6 (>= 5.2), libxfce4ui-1-0 (>= 4.8.0), libxfce4util7 (>= 4.9.0), mate-xfce4-panel-plugin-loader-applet
    22 Breaks: lliurex-artwork-defaults-desktop (<< 5.0.44.2)
     22Breaks: lliurex-artwork-defaults-desktop (<< 5.0.44.2), libreoffice-style-human (<< 1:5.4.0~rc3-0ubuntu0.16.04.1~lo1)
    2323Description: LliureX 16 common files
    2424 LliureX artwork common files
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-common.postinst

    r5134 r5942  
    3434        DIVERTED_AUTOSTART_FILE1="/usr/share/lliurex-artwork-defaults/diversions/tilda.desktop"
    3535
    36 
     36        ORIGINAL_LO_MOD="/usr/share/ubuntu-mate/settings-overlay/config/libreoffice/4/user/registrymodifications.xcu"
     37        DIVERTED_LO_MOD="/usr/share/lliurex-artwork-defaults/diversions/registrymodifications.xcu"
     38        LLIUREX_LO_MOD="/usr/share/lliurex-artwork-defaults/libreoffice/registrymodifications.xcu"
    3739
    3840        if [ ! -L "$ORIGINAL_WHISKER_ES_FILE" ]; then
     
    7476        fi
    7577
     78
     79        if [ ! -L "$ORIGINAL_LO_MOD" ]; then
     80
     81                dpkg-divert --add --package ${PKG} --rename --divert "$DIVERTED_LO_FILE" "$ORIGINAL_LO_FILE"
     82                ln -s "$LLIUREX_LO_MOD" "$ORIGINAL_LO_MOD"
     83
     84        fi
     85
     86
    7687        update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/bin/mate-session 60
    7788        update-alternatives --set x-session-manager /usr/bin/mate-session || true
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-common.prerm

    r4934 r5942  
    2525        DIVERTED_AUTOSTART_FILE1="/usr/share/lliurex-artwork-defaults/diversions/tilda.desktop"
    2626
     27        ORIGINAL_LO_MOD="/usr/share/ubuntu-mate/settings-overlay/config/libreoffice/4/user/registrymodifications.xcu"
     28        DIVERTED_LO_MOD="/usr/share/lliurex-artwork-defaults/diversions/registrymodifications.xcu"
     29        LLIUREX_LO_MOD="/usr/share/lliurex-artwork-defaults/libreoffice/registrymodifications.xcu"
    2730
    2831        if [ -L "$ORIGINAL_WHISKER_ES_FILE" ]; then
     
    6467        fi
    6568
     69        if [ -L "$ORIGINAL_LO_MOD" ]; then
     70
     71                rm -rf "$ORIGINAL_LO_MOD" || true
     72                dpkg-divert --remove --package ${PKG} --rename --divert "$DIVERTED_LO_MOD" "$ORIGINAL_LO_MOD"
     73
     74        fi
     75
     76
    6677        update-alternatives --auto x-session-manager || true
    6778
Note: See TracChangeset for help on using the changeset viewer.