Fix alternatives provision on Debian and Ubuntu

This resolves Bug 2452

Signed-off-by: Nick Leverton <nick@leverton.org>
pull/3/head
Nick Leverton 10 years ago committed by Slávek Banko
parent be8296e88c
commit 9e82e24129

@ -24,6 +24,9 @@ case "$1" in
divert_remove /usr/share/icons/hicolor/48x48/apps/konqueror.png divert_remove /usr/share/icons/hicolor/48x48/apps/konqueror.png
divert_remove /usr/share/icons/hicolor/64x64/apps/konqueror.png divert_remove /usr/share/icons/hicolor/64x64/apps/konqueror.png
divert_remove /usr/share/icons/hicolor/scalable/apps/konqueror.svgz divert_remove /usr/share/icons/hicolor/scalable/apps/konqueror.svgz
update-alternatives --install /usr/bin/x-www-browser x-www-browser /opt/trinity/bin/konqueror 100 \
--slave /usr/share/man/man1/x-www-browser.1.gz x-www-browser.1.gz /usr/share/man/man1/konqueror-trinity.1.gz
;; ;;
install) install)

@ -2,7 +2,7 @@
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-www-browser /usr/trinity/bin/konqueror /usr/sbin/update-alternatives --remove x-www-browser /opt/trinity/bin/konqueror
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -20,7 +20,7 @@ set -e
case "$1" in case "$1" in
configure) configure)
update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /opt/trinity/bin/konsole 35 \ update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /opt/trinity/bin/konsole 35 \
--slave /opt/trinity/share/man/man1/x-terminal-emulator.1.gz x-terminal-emulator.1.gz /opt/trinity/share/man/man1/konsole-trinity.1.gz --slave /usr/share/man/man1/x-terminal-emulator.1.gz x-terminal-emulator.1.gz /usr/share/man/man1/konsole-trinity.1.gz
# force ldconfig due to tdeinit library # force ldconfig due to tdeinit library
ldconfig ldconfig

@ -19,7 +19,7 @@ set -e
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-terminal-emulator /usr/trinity/bin/konsole /usr/sbin/update-alternatives --remove x-terminal-emulator /opt/trinity/bin/konsole
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -21,8 +21,8 @@ case "$1" in
configure) configure)
update-alternatives --install /usr/bin/x-session-manager \ update-alternatives --install /usr/bin/x-session-manager \
x-session-manager /opt/trinity/bin/starttde 40 \ x-session-manager /opt/trinity/bin/starttde 40 \
--slave /opt/trinity/share/man/man1/x-session-manager.1.gz \ --slave /usr/share/man/man1/x-session-manager.1.gz \
x-session-manager.1.gz "/opt/trinity/share/man/man1/starttde-trinity.1.gz" x-session-manager.1.gz "/usr/share/man/man1/starttde-trinity.1.gz"
# force ldconfig due to tdeinit library # force ldconfig due to tdeinit library
ldconfig ldconfig

@ -19,7 +19,7 @@ set -e
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-session-manager /usr/trinity/bin/starttde /usr/sbin/update-alternatives --remove x-session-manager /opt/trinity/bin/starttde
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -19,7 +19,7 @@ set -e
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-window-manager /usr/trinity/bin/twin /usr/sbin/update-alternatives --remove x-window-manager /opt/trinity/bin/twin
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -24,6 +24,9 @@ case "$1" in
divert_remove /usr/share/icons/hicolor/48x48/apps/konqueror.png divert_remove /usr/share/icons/hicolor/48x48/apps/konqueror.png
divert_remove /usr/share/icons/hicolor/64x64/apps/konqueror.png divert_remove /usr/share/icons/hicolor/64x64/apps/konqueror.png
divert_remove /usr/share/icons/hicolor/scalable/apps/konqueror.svgz divert_remove /usr/share/icons/hicolor/scalable/apps/konqueror.svgz
update-alternatives --install /usr/bin/x-www-browser x-www-browser /opt/trinity/bin/konqueror 100 \
--slave /usr/share/man/man1/x-www-browser.1.gz x-www-browser.1.gz /usr/share/man/man1/konqueror-trinity.1.gz
;; ;;
install) install)

@ -2,7 +2,7 @@
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-www-browser /usr/trinity/bin/konqueror /usr/sbin/update-alternatives --remove x-www-browser /opt/trinity/bin/konqueror
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -20,7 +20,7 @@ set -e
case "$1" in case "$1" in
configure) configure)
update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /opt/trinity/bin/konsole 35 \ update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /opt/trinity/bin/konsole 35 \
--slave /opt/trinity/share/man/man1/x-terminal-emulator.1.gz x-terminal-emulator.1.gz /opt/trinity/share/man/man1/konsole-trinity.1.gz --slave /usr/share/man/man1/x-terminal-emulator.1.gz x-terminal-emulator.1.gz /usr/share/man/man1/konsole-trinity.1.gz
# force ldconfig due to tdeinit library # force ldconfig due to tdeinit library
ldconfig ldconfig

@ -19,7 +19,7 @@ set -e
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-terminal-emulator /usr/trinity/bin/konsole /usr/sbin/update-alternatives --remove x-terminal-emulator /opt/trinity/bin/konsole
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -21,8 +21,8 @@ case "$1" in
configure) configure)
update-alternatives --install /usr/bin/x-session-manager \ update-alternatives --install /usr/bin/x-session-manager \
x-session-manager /opt/trinity/bin/starttde 40 \ x-session-manager /opt/trinity/bin/starttde 40 \
--slave /opt/trinity/share/man/man1/x-session-manager.1.gz \ --slave /usr/share/man/man1/x-session-manager.1.gz \
x-session-manager.1.gz "/opt/trinity/share/man/man1/starttde-trinity.1.gz" x-session-manager.1.gz "/usr/share/man/man1/starttde-trinity.1.gz"
# force ldconfig due to tdeinit library # force ldconfig due to tdeinit library
ldconfig ldconfig

@ -19,7 +19,7 @@ set -e
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-session-manager /usr/trinity/bin/starttde /usr/sbin/update-alternatives --remove x-session-manager /opt/trinity/bin/starttde
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -19,7 +19,7 @@ set -e
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-window-manager /usr/trinity/bin/twin /usr/sbin/update-alternatives --remove x-window-manager /opt/trinity/bin/twin
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -24,6 +24,9 @@ case "$1" in
divert_remove /usr/share/icons/hicolor/48x48/apps/konqueror.png divert_remove /usr/share/icons/hicolor/48x48/apps/konqueror.png
divert_remove /usr/share/icons/hicolor/64x64/apps/konqueror.png divert_remove /usr/share/icons/hicolor/64x64/apps/konqueror.png
divert_remove /usr/share/icons/hicolor/scalable/apps/konqueror.svgz divert_remove /usr/share/icons/hicolor/scalable/apps/konqueror.svgz
update-alternatives --install /usr/bin/x-www-browser x-www-browser /opt/trinity/bin/konqueror 100 \
--slave /usr/share/man/man1/x-www-browser.1.gz x-www-browser.1.gz /usr/share/man/man1/konqueror-trinity.1.gz
;; ;;
install) install)

@ -2,7 +2,7 @@
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-www-browser /usr/trinity/bin/konqueror /usr/sbin/update-alternatives --remove x-www-browser /opt/trinity/bin/konqueror
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -20,7 +20,7 @@ set -e
case "$1" in case "$1" in
configure) configure)
update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /opt/trinity/bin/konsole 35 \ update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /opt/trinity/bin/konsole 35 \
--slave /opt/trinity/share/man/man1/x-terminal-emulator.1.gz x-terminal-emulator.1.gz /opt/trinity/share/man/man1/konsole-trinity.1.gz --slave /usr/share/man/man1/x-terminal-emulator.1.gz x-terminal-emulator.1.gz /usr/share/man/man1/konsole-trinity.1.gz
# force ldconfig due to tdeinit library # force ldconfig due to tdeinit library
ldconfig ldconfig

@ -19,7 +19,7 @@ set -e
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-terminal-emulator /usr/trinity/bin/konsole /usr/sbin/update-alternatives --remove x-terminal-emulator /opt/trinity/bin/konsole
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -21,8 +21,8 @@ case "$1" in
configure) configure)
update-alternatives --install /usr/bin/x-session-manager \ update-alternatives --install /usr/bin/x-session-manager \
x-session-manager /opt/trinity/bin/starttde 40 \ x-session-manager /opt/trinity/bin/starttde 40 \
--slave /opt/trinity/share/man/man1/x-session-manager.1.gz \ --slave /usr/share/man/man1/x-session-manager.1.gz \
x-session-manager.1.gz "/opt/trinity/share/man/man1/starttde-trinity.1.gz" x-session-manager.1.gz "/usr/share/man/man1/starttde-trinity.1.gz"
# force ldconfig due to tdeinit library # force ldconfig due to tdeinit library
ldconfig ldconfig

@ -19,7 +19,7 @@ set -e
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-session-manager /usr/trinity/bin/starttde /usr/sbin/update-alternatives --remove x-session-manager /opt/trinity/bin/starttde
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

@ -19,7 +19,7 @@ set -e
case "$1" in case "$1" in
remove) remove)
/usr/sbin/update-alternatives --remove x-window-manager /usr/trinity/bin/twin /usr/sbin/update-alternatives --remove x-window-manager /opt/trinity/bin/twin
;; ;;
upgrade|deconfigure) upgrade|deconfigure)

Loading…
Cancel
Save