From: guigues Date: Tue, 12 Feb 2008 16:00:47 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: r0.6.1~233 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=sidebyside;h=c89c26955f633f54fe1d90f6aca459cd6f86401a;hp=6d7d05bded40ce12f36a990d50078ce1481e0485;p=bbtk.git *** empty log message *** --- diff --git a/kernel/install/gnome/README.txt b/kernel/install/gnome/README.txt new file mode 100644 index 0000000..740894d --- /dev/null +++ b/kernel/install/gnome/README.txt @@ -0,0 +1,27 @@ +The shell script 'install-gnome.sh' installs : +- bbi shortcut on gnome desktop +- the mime type 'text/bbs' for '*.bbs' files +- associates the type 'text/bbs' to the shortcut + +1) bbi **MUST** be in the applications path +(typing bbi in a term in any folder is succesful). +The best way to achieve this is to install cleanly bbtk. + +2) you *MUST* run the script as yourself, not root +or the stuff will be installed for root ! + +That all folks ! + +-------------------------------------------------------- +Tech notes : +* The script uses 'which bbi' to locate bbi +* It installs : +${HOME}/.local/share/applications/bbi.desktop +${HOME}/.local/share/applications/bbi-icon.png +${HOME}/.local/share/applications/bbi-icon2.png +${HOME}/.local/share/mime/packages/bbs.xml +* It adds the line 'text/bbs=bbi.desktop' to the file ${HOME}/.local/share/applications/defaults.list +* It makes the sym link : +ln -s ${HOME}/.local/share/applications/bbi.desktop ${HOME}/Desktop/bbi.desktop +* It runs update-mime-database and restarts nautilus + diff --git a/kernel/install/gnome/bbi-icon2.png b/kernel/install/gnome/bbi-icon2.png index 6d3c5eb..76952c2 100644 Binary files a/kernel/install/gnome/bbi-icon2.png and b/kernel/install/gnome/bbi-icon2.png differ diff --git a/kernel/install/gnome/bbi.desktop.in b/kernel/install/gnome/bbi.desktop.in index 1817ab4..f06ffaa 100644 --- a/kernel/install/gnome/bbi.desktop.in +++ b/kernel/install/gnome/bbi.desktop.in @@ -8,4 +8,4 @@ Type=Application Terminal=false NoDisplay=false GenericName[en_US]="The Black Box Interpreter (bbi)" -Icon=HOME/.local/share/applications/bbi-icon.png +Icon=HOME/.local/share/applications/bbi-icon2.png diff --git a/kernel/install/gnome/install-gnome.sh b/kernel/install/gnome/install-gnome.sh index 7da7f41..79b848e 100755 --- a/kernel/install/gnome/install-gnome.sh +++ b/kernel/install/gnome/install-gnome.sh @@ -13,8 +13,9 @@ rm tmp ln -s ${HOME}/.local/share/applications/bbi.desktop ${HOME}/Desktop/bbi.desktop -echo "* Copying 'bbi-icon.png' in ${HOME}/.local/share/applications/" +echo "* Copying bbi icons in ${HOME}/.local/share/applications/" cp bbi-icon.png ${HOME}/.local/share/applications/ +cp bbi-icon2.png ${HOME}/.local/share/applications/ # add the type 'text/bbs' to mime database echo "* Adding mime-type 'text/bbs' to mime database (${HOME}/.local/share/mime/packages/bbs.xml)"