Skype Installation

Carlos A. Paramio carlos.paramio at
Fri Mar 11 16:53:41 UTC 2005

This thread makes me think... It would be great if you could install a
deb package simply double-clicking on the corresponding icon.

Maybe a script like this, associated with application/x-debian-package
mime type, would be a solution.


CONFIRM_TITLE="Installation of a package"
CONFIRM_TEXT="Please confirm that you want to install this package and
all his dependences."
INSTALL_SUCCESS="Package was installed succesfully."
INSTALL_ERROR="There was an error while trying to install the package."

install_pkg() {
  gksudo "dpkg -i $1" && gksudo "apt-get -f install"
  if [ $? -eq 0 ]; then
    /usr/bin/zenity --info --text "$INSTALL_SUCCESS"
    /usr/bin/zenity --error --text "$INSTALL_ERROR"

/usr/bin/zenity --question \
                --title "$CONFIRM_TITLE" \
                --text "$CONFIRM_TEXT" && install_pkg $1
Carlos Alberto Paramio Danta            .--.    |o_o |
email : carlos.paramio @ |:_/ |
jabber: parax @          //   \ \
-------------------------------------(|     | )--
Fingerprint 41C6 D2BE 7DE7 AB61 C23F /'\_   _/`\
            F697 5A1D 1849 01B8 D318 \___)=(___/

¿Todavía no pliegas proteínas?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the ubuntu-users mailing list