Skype Installation
Carlos A. Paramio
carlos.paramio at hispalinux.es
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.
---------------------8X--------------------------
#!/bin/sh
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"
else
/usr/bin/zenity --error --text "$INSTALL_ERROR"
fi
}
/usr/bin/zenity --question \
--title "$CONFIRM_TITLE" \
--text "$CONFIRM_TEXT" && install_pkg $1
---------------------8X--------------------------
--
Carlos Alberto Paramio Danta .--.
http://carlosparamio.is-a-geek.org/ |o_o |
email : carlos.paramio @ hispalinux.es |:_/ |
jabber: parax @ bulmalug.net // \ \
-------------------------------------(| | )--
Fingerprint 41C6 D2BE 7DE7 AB61 C23F /'\_ _/`\
F697 5A1D 1849 01B8 D318 \___)=(___/
¿Todavía no pliegas proteínas? http://folding.stanford.edu/spanish/
-------------- 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: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050311/12525bc3/attachment.sig>
More information about the ubuntu-users
mailing list