* added graalvm (22.0.0.1) - A high-performance JDK distribution
[t2.git] / package / enlightenment / entrance / entrance.postinstall
bloba865643980ac04129f11bff19e4fc97993b77a96
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 - 2005 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 ---
16 s=0
18 echo "Updating entrance session database from wm registry ..."
19 for x in /usr/share/rock-registry/wm/* ; do
20 . $x
22 short="`basename $x`"
23 echo " $name ($short) ..."
25 # adding into database ...
26 ecore_config -c /etc/opt/e17/entrance_config.cfg -k /entrance/session/$s/title -s $name
27 ecore_config -c /etc/opt/e17/entrance_config.cfg -k /entrance/session/$s/session -s $exec
29 # match entrance icon
30 icon=""
31 case "$short" in
32 kde*) icon=kde ;;
33 *nome*) icon=gnome ;;
34 blackbox) icon=blackbox ;;
35 windowmaker) icon=windowmaker ;;
36 xfce) icon=xfce ;;
37 *) icon=default ;;
38 esac
39 icon=$icon.png
41 ecore_config -c /etc/opt/e17/entrance_config.cfg -k /entrance/session/$s/icon -s $icon
43 echo $(( s++ ))
44 done
46 # set the session count ...
47 ecore_config -c /etc/opt/e17/entrance_config.cfg -k /entrance/session/count -i $s