OpenSDE Packages Database (without history before r20070)
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.

48 lines
1.4 KiB

  1. #!/bin/sh
  2. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # T2 SDE: package/.../entrance/entrance.postinstall
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- T2-COPYRIGHT-NOTE-END ---
  15. s=0
  16. echo "Updating entrance session database from wm registry ..."
  17. for x in /usr/share/rock-registry/wm/* ; do
  18. . $x
  19. short="`basename $x`"
  20. echo " $name ($short) ..."
  21. # adding into database ...
  22. ecore_config -c /etc/opt/e17/entrance_config.cfg -k /entrance/session/$s/title -s $name
  23. ecore_config -c /etc/opt/e17/entrance_config.cfg -k /entrance/session/$s/session -s $exec
  24. # match entrance icon
  25. icon=""
  26. case "$short" in
  27. kde*) icon=kde ;;
  28. *nome*) icon=gnome ;;
  29. blackbox) icon=blackbox ;;
  30. windowmaker) icon=windowmaker ;;
  31. xfce) icon=xfce ;;
  32. *) icon=default ;;
  33. esac
  34. icon=$icon.png
  35. ecore_config -c /etc/opt/e17/entrance_config.cfg -k /entrance/session/$s/icon -s $icon
  36. echo $(( s++ ))
  37. done
  38. # set the session count ...
  39. ecore_config -c /etc/opt/e17/entrance_config.cfg -k /entrance/session/count -i $s