mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
817 B

  1. #!/bin/sh
  2. s=0
  3. echo "Updating entrance session database from ROCK wm registry ..."
  4. for x in /usr/share/rock-registry/wm/* ; do
  5. . $x
  6. short="`basename $x`"
  7. echo " $name ($short) ..."
  8. # adding into database ...
  9. edb_ed /etc/opt/e17/entrance_config.db add /entrance/session/$s/title str $name
  10. edb_ed /etc/opt/e17/entrance_config.db add /entrance/session/$s/session str $exec
  11. # match entrance icon
  12. icon=""
  13. case "$short" in
  14. kde*) icon=kde ;;
  15. *nome*) icon=gnome ;;
  16. blackbox) icon=blackbox ;;
  17. windowmaker) icon=windowmaker ;;
  18. xfce) icon=xfce ;;
  19. *) icon=default ;;
  20. esac
  21. icon=$icon.png
  22. edb_ed /etc/opt/e17/entrance_config.db add /entrance/session/$s/icon str $icon
  23. echo $(( s++ ))
  24. done
  25. # set the session count ...
  26. edb_ed /etc/opt/e17/entrance_config.db add /entrance/session/count int $s