diff options
Diffstat (limited to 'x11-misc/entrance/files/0.9.0.20031020-gentoo-sessions.patch')
-rw-r--r-- | x11-misc/entrance/files/0.9.0.20031020-gentoo-sessions.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/x11-misc/entrance/files/0.9.0.20031020-gentoo-sessions.patch b/x11-misc/entrance/files/0.9.0.20031020-gentoo-sessions.patch new file mode 100644 index 000000000000..d1ee0b84b4bb --- /dev/null +++ b/x11-misc/entrance/files/0.9.0.20031020-gentoo-sessions.patch @@ -0,0 +1,61 @@ +--- data/config/build_config.sh.orig 2003-10-08 11:30:08.000000000 -0400 ++++ data/config/build_config.sh 2003-10-13 23:33:55.864502000 -0400 +@@ -1,4 +1,4 @@ +-#!/bin/sh -e ++#!/bin/bash + DB="./entrance_config.db" + rm -f $DB + +@@ -14,24 +14,33 @@ + #edb_ed $DB add /entrance/fonts/count int 2 + #edb_ed $DB add /entrance/fonts/0/str str "/usr/share/fonts/truetype/" + #edb_ed $DB add /entrance/fonts/1/str str "/usr/X11R6/lib/X11/fonts/Truetype/" +-edb_ed $DB add /entrance/session/count int 9 +-edb_ed $DB add /entrance/session/0/value str "" +-edb_ed $DB add /entrance/session/0/key str "Default" +-edb_ed $DB add /entrance/session/1/value str "enlightenment" +-edb_ed $DB add /entrance/session/1/key str "Enlightenment" +-edb_ed $DB add /entrance/session/2/value str "kde" +-edb_ed $DB add /entrance/session/2/key str "KDE" +-edb_ed $DB add /entrance/session/3/value str "gnome" +-edb_ed $DB add /entrance/session/3/key str "Gnome" +-edb_ed $DB add /entrance/session/4/value str "gnome" +-edb_ed $DB add /entrance/session/4/key str "Gnome" +-edb_ed $DB add /entrance/session/5/value str "blackbox" +-edb_ed $DB add /entrance/session/5/key str "Blackbox" +-edb_ed $DB add /entrance/session/6/value str "sawfish" +-edb_ed $DB add /entrance/session/6/key str "Sawfish" +-edb_ed $DB add /entrance/session/7/value str "xfce" +-edb_ed $DB add /entrance/session/7/key str "XFce" +-edb_ed $DB add /entrance/session/8/value str "failsafe" +-edb_ed $DB add /entrance/session/8/key str "Failsafe" ++ ++pick_icon() { ++ case "`basename $(echo $1 | awk '{print toupper($1)}')`" in ++ KDE*) echo -n "kde";; ++ GNOME*) echo -n "gnome";; ++ ENLIGHTENMENT) echo -n "e16";; ++ E17) echo -n "enlightenment";; ++ WMAKER) echo -n "widowmaker";; ++ BLACKBOX) echo -n "blackbox";; ++ *) echo -n "default";; ++ esac ++ echo ".png"; ++} ++ ++count=-1 ++for ses in /etc/X11/Sessions/* ; do ++ let "count++" ++ edb_ed $DB add /entrance/session/${count}/name str "`basename ${ses}`" ++ edb_ed $DB add /entrance/session/${count}/path str "${ses}" ++ edb_ed $DB add /entrance/session/${count}/icon str "`pick_icon ${ses}`" ++done ++let "count++" ++edb_ed $DB add /entrance/session/${count}/name str "Failsafe" ++edb_ed $DB add /entrance/session/${count}/path str "/etc/X11/Sessions/Xsession failsafe" ++edb_ed $DB add /entrance/session/${count}/icon str "default.png" ++edb_ed $DB add /entrance/session/count int ${count} ++edb_ed $DB add /entrance/session/default int 0 ++ + edb_ed $DB add /entrance/system/reboot int 1 + edb_ed $DB add /entrance/system/halt int 1 |