Magellan Linux

Contents of /alx-src/branches/alxconf-060/plugins/terminal/plugin.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3504 - (show annotations) (download) (as text)
Thu Apr 19 13:27:58 2012 UTC (12 years ago) by niro
File MIME type: application/x-sh
File size: 1172 byte(s)
-export PLUGIN_MENUITEM_NAME in autostart function which is used as name for the generated sh script
1 # this script gets included by config_sessions
2
3 PLUGIN_NAME="terminal"
4 PLUGIN_MENUITEM_NAME="${PLUGIN_NAME}"
5 PLUGIN_MENUITEM_EXEC="rxvt"
6 PLUGIN_MENUITEM_PARAM=""
7 PLUGIN_MENUITEM_WORKDIR=""
8 PLUGIN_MENUITEM_ICON=""
9
10 PLUGIN_AUTOSTART=0
11
12 install_plugin()
13 {
14 if [[ -z $(magequery -n rxvt) ]]
15 then
16 MAGE_BOOTSTRAP=true mage install rxvt
17 mage clean
18 fi
19 }
20
21 setup_plugin()
22 {
23 return 0
24 }
25
26 # create desktop buttons
27 create_menuitem()
28 {
29 # don't touch these echo, define variables above
30 echo "PLUGIN_MENUITEM_NAME=\"${PLUGIN_MENUITEM_NAME}\""
31 echo "PLUGIN_MENUITEM_EXEC=\"${PLUGIN_MENUITEM_EXEC}\""
32 echo "PLUGIN_MENUITEM_PARAM=\"${PLUGIN_MENUITEM_PARAM}\""
33 echo "PLUGIN_MENUITEM_WORKDIR=\"${PLUGIN_MENUITEM_WORKDIR}\""
34 echo "PLUGIN_MENUITEM_ICON=\"${PLUGIN_MENUITEM_ICON}\""
35 }
36
37 autostart_plugin()
38 {
39 echo "PLUGIN_AUTOSTART=\"${PLUGIN_AUTOSTART}\""
40 echo "PLUGIN_MENUITEM_NAME=\"${PLUGIN_MENUITEM_NAME}\""
41 }
42
43 uninstall_plugin()
44 {
45 # keep rxvt
46 return
47 }
48
49 case $1 in
50 install) install_plugin ;;
51 setup) setup_plugin ;;
52 menuitem) create_menuitem ;;
53 uninstall) uninstall_plugin ;;
54 autostart) autostart_plugin ;;
55 *) echo "PLUGIN '${PLUGIN_NAME}': unkown operation '$1'" ;;
56 esac