Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox.client.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2624 by niro, Fri Sep 25 13:06:52 2015 UTC revision 2625 by niro, Fri Sep 25 13:31:20 2015 UTC
# Line 71  help_fluxbox_autostart() Line 71  help_fluxbox_autostart()
71   mecho "get fluxbox.autostart"   mecho "get fluxbox.autostart"
72   mecho " Shows all custom added autostarts of fluxbox."   mecho " Shows all custom added autostarts of fluxbox."
73   mecho   mecho
74   mecho "set fluxbox.autostart [action] [name] [exec] [comment]"   mecho "set fluxbox.autostart [action] [name] [exec]"
75   mecho " Adds or deletes a fluxbox autostart entry."   mecho " Adds or deletes a fluxbox autostart entry."
76   mecho " Actions:"   mecho " Actions:"
77   mecho "   add     - adds an autostart entry"   mecho "   add     - adds an autostart entry"
# Line 79  help_fluxbox_autostart() Line 79  help_fluxbox_autostart()
79   mecho   mecho
80   mecho "   name    - autostart entry name"   mecho "   name    - autostart entry name"
81   mecho "   exec    - executable to start"   mecho "   exec    - executable to start"
  mecho "   comment - comment about this autostart - optional"  
82   mecho   mecho
83   mecho " If no [name] given, all entries will be deleted."   mecho " If no [name] given, all entries will be deleted."
84  }  }
85    
86  # set_fluxbox_autostart $name $exec $comment  # set_fluxbox_autostart $name $exec
87  set_fluxbox_autostart()  set_fluxbox_autostart()
88  {  {
89   local action="${CLASS_ARGV[0]}"   local action="${CLASS_ARGV[0]}"
90   local name="${CLASS_ARGV[1]}"   local name="${CLASS_ARGV[1]}"
91   local exec="${CLASS_ARGV[2]}"   local exec="${CLASS_ARGV[2]}"
  local comment="${CLASS_ARGV[3]}"  
92   local CONFIG   local CONFIG
93    
94   [[ -z ${action} ]] && help_fluxbox_autostart && return 1   [[ -z ${action} ]] && help_fluxbox_autostart && return 1
# Line 99  set_fluxbox_autostart() Line 97  set_fluxbox_autostart()
97   add)   add)
98   [[ -z ${name} ]] && help_fluxbox_autostart && return 1   [[ -z ${name} ]] && help_fluxbox_autostart && return 1
99   [[ -z ${exec} ]] && help_fluxbox_autostart && return 1   [[ -z ${exec} ]] && help_fluxbox_autostart && return 1
100   ${MCORE_LIBDIR}/fluxbox-autostart --add  --name "${name}" --exec "${exec}" --comment "${comment}"   ${MCORE_LIBDIR}/fluxbox-autostart --add  --name "${name}" --exec "${exec}"
101   ;;   ;;
102   del)   del)
103   if [[ -n ${name} ]]   if [[ -n ${name} ]]

Legend:
Removed from v.2624  
changed lines
  Added in v.2625