[Pkg-xfce-devel] Bug#423924: Alternatives file (wishlist)

Thanatermesis thanatermesis.elive at gmail.com
Mon May 14 23:15:55 UTC 2007


Package: thunar
Version: 0.4.0rc1-3


The file managers needs a alternatives file, there are the lines to
add on postinst and prerm:
(warning: do not use /usr/bin/thunar on that conf, is a symlink)

postinst:

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
    update-alternatives --install /usr/bin/file-manager \
        file-manager /usr/bin/Thunar 80 \
        --slave /usr/share/man/man1/file-manager.1.gz \
        file-manager.1.gz /usr/share/man/man1/thunar.1.gz
fi


prerm:

if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
    update-alternatives --remove file-manager /usr/bin/Thunar
fi




Greetings

Thanatermesis

-- 
Do you want a new linux experience? Just follow my legacy...




More information about the Pkg-xfce-devel mailing list