From b35eefe534b7dfc11c1d170553807da094ef6349 Mon Sep 17 00:00:00 2001 From: Pablo Saratxaga Date: Thu, 23 Dec 1999 22:34:51 +0000 Subject: added Gnome desktop icons previously done in gmc package --- ChangeLog | 6 +++ gnome/mandrake.links.sh | 131 ++++++++++++++++++++++++++++++++++++++++++++++++ mandrake_desk.spec | 14 ++++++ 3 files changed, 151 insertions(+) create mode 100644 gnome/mandrake.links.sh diff --git a/ChangeLog b/ChangeLog index 361b0b6..be2faae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-12-23 Pablo Saratxga + + * gnome/mandrake.links,gnome/mandrake.links.sh,mandrake_desk.spec: + moved here the creation of Gnome desktop icons; that makes it + easier to manage, easier to update and keep in sync with KDE. + 1999-12-23 Chmouel Boudjnah * kdelnk/Kppp.kdlnk: new. diff --git a/gnome/mandrake.links.sh b/gnome/mandrake.links.sh new file mode 100644 index 0000000..f2b2527 --- /dev/null +++ b/gnome/mandrake.links.sh @@ -0,0 +1,131 @@ +#!/bin/bash + +if [ -n "$LANGUAGE" ]; then + LISTLANG="`echo $LANGUAGE | tr ':' ' '`" ; +else + if [ -n "$LANG" ]; then + LISTLANG="$LANG" + else + LISTLANG=en + fi +fi + +################### +# Internet connex # +################### +CAPTION="" +for i in $LISTLANG +do + if [ "$CAPTION" != "" ]; then break ; fi + case "$i" in + en*) CAPTION="Internet connection" ;; + bg*) CAPTION="Èíòåðíåò Âðúçêà" ;; + da*) CAPTION="Internet forbindelse" ;; + es*) CAPTION="Conexión a Internet" ;; + et*) CAPTION="Internetiühendus" ;; + fr*) CAPTION="Connexion à l'Internet" ;; + hr*) CAPTION="Veza s InterNetom" ;; + hu*) CAPTION="Internet kapcsolat" ;; + id*) CAPTION="Koneksi Internet" ;; + it*) CAPTION="Connessione a Internet" ;; + nl*) CAPTION="Internet verbinding" ;; + no*) CAPTION="Oppkobling Internett" ;; + ru*) CAPTION="Internet-ÓÏÅÄÉÎÅÎÉÅ" ;; + uk*) CAPTION="ú'¤ÄÎÁÎÎÑ Ú ¦ÎÔÅÒÎÅÔÏÍ" ;; + wa*) CAPTION="Raloyaedje al rantoele daegnrece" ;; + esac +done +if [ "$CAPTION" = "" ]; then CAPTION="Internet connection" ; fi + +/usr/bin/gdesktoplnk \ + --progname="/usr/bin/gnome-ppp" \ + --icon-name="gnome-networktool.png" \ + --icon-caption="$CAPTION" \ + --link-name="MDKppp" \ + --desktop-dir="$HOME/.gnome-desktop" + +################### +# Mandrake Update # +################### +CAPTION="" +for i in $LISTLANG +do + if [ "$CAPTION" != "" ]; then break ; fi + case "$i" in + en*) CAPTION="Mandrake Updates" ;; + bg*) CAPTION="Mandrake Îáíîâÿâàíå" ;; + br*) CAPTION="Hizivadurioù Mandrake" ;; + ca*) CAPTION="Actualitzacions del Mandrake" ;; + cs*) CAPTION="Aktualizace Mandrake" ;; + da*) CAPTION="Mandrake Opdateringer" ;; + de*) CAPTION="Mandrake Updates" ;; + es*) CAPTION="Actualizaciones de Mandrake" ;; + et*) CAPTION="Mandrake parandused" ;; + fr*) CAPTION="Mises à jour de Mandrake" ;; + ga*) CAPTION="Nuashonraí Mandrake" ;; + gl*) CAPTION="Actualizacións de Mandrake" ;; + hr*) CAPTION="Mandrake nadogradnje" ;; + hu*) CAPTION="Mandrake frissítések" ;; + id*) CAPTION="Situs Update Mandrake" ;; + is*) CAPTION="Mandrake uppfærslur" ;; + it*) CAPTION="Aggiornamenti Mandrake" ;; + lt*) CAPTION="Mandrake atnaujinimai" ;; + nl*) CAPTION="Mandrake updates" ;; + no*) CAPTION="Mandrake oppdateringer" ;; + ro*) CAPTION="Actualizãri pentru Mandrake" ;; + uk*) CAPTION="ðÏÎÏ×ÌÅÎÎÑ ÓÉÓÔÅÍÉ Mandrake" ;; + wa*) CAPTION="Metaedje a djoû di Mandrake" ;; + esac +done +if [ "$CAPTION" = "" ]; then CAPTION="Mandrake Updates" ; fi + +/usr/bin/gdesktoplnk \ + --progname="/usr/X11R6/bin/MandrakeUpdate" \ + --icon-name="../icons/mdk-updates.xpm" \ + --icon-caption="$CAPTION" \ + --link-name="MDKUpdates" \ + --desktop-dir="$HOME/.gnome-desktop" + + +############ +# DrakConf # +############ +CAPTION="" +for i in $LISTLANG +do + if [ "$CAPTION" != "" ]; then break ; fi + case "$i" in + en*) CAPTION="DrakConf" ;; + esac +done +if [ "$CAPTION" = "" ]; then CAPTION="DrakConf" ; fi + +/usr/bin/gdesktoplnk \ + --progname="/usr/bin/kdesu -c '/usr/X11R6/bin/DrakConf'" \ + --icon-name="../icons/DrakConf.xpm" \ + --icon-caption="$CAPTION" \ + --link-name="DrakConf" \ + --desktop-dir="$HOME/.gnome-desktop" + + +############ +# rpmdrake # +############ +CAPTION="" +for i in $LISTLANG +do + if [ "$CAPTION" != "" ]; then break ; fi + case "$i" in + en*) CAPTION="RpmDrake" ;; + esac +done +if [ "$CAPTION" = "" ]; then CAPTION="RpmDrake" ; fi + +/usr/bin/gdesktoplnk \ + --progname="/usr/X11R6/bin/rpmdrake" \ + --icon-name="../icons/rpmdrake.xpm" \ + --icon-caption="$CAPTION" \ + --link-name="rpmdrake" \ + --desktop-dir="$HOME/.gnome-desktop" + + diff --git a/mandrake_desk.spec b/mandrake_desk.spec index 3402232..410141a 100644 --- a/mandrake_desk.spec +++ b/mandrake_desk.spec @@ -36,6 +36,15 @@ pushd $RPM_BUILD_ROOT/usr/share/pixmaps/backgrounds/mandrake && { } && popd rm -f special/mandrake-small.xpm +mkdir -p $RPM_BUILD_ROOT/usr/lib/mc/desktop-scripts +install -m 755 gnome/mandrake.links.sh \ + $RPM_BUILD_ROOT/usr/lib/mc/desktop-scripts/mandrake.links.sh + +mkdir -p $RPM_BUILD_ROOT/usr/lib/desktop-links +install -m 644 gnome/mandrake.links \ + $RPM_BUILD_ROOT/usr/lib/desktop-links/mandrake.links + + %clean rm -rf $RPM_BUILD_ROOT @@ -53,9 +62,14 @@ rm -rf $RPM_BUILD_ROOT /etc/skel/Desktop/ /usr/share/pixmaps/mdk /usr/share/gnome/apps/Internet/*.desktop +/usr/lib/mc/desktop-scripts/mandrake.links.sh +/usr/lib/desktop-links/mandrake.links %changelog +* Tue Dec 23 1999 Pablo Saratxaga +- included the mandrake.links* files formerly in gmc package + * Wed Dec 22 1999 Chmouel Boudjnah - sbin/fndSession: new script with the new chksession. - sbin/chksession: a new greatest hit. -- cgit v1.2.1