2 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
5 # Filename: lib/init/install_desktop.in
6 # Copyright (C) 2008 The OpenSDE Project
7 # Copyright (C) 2004 - 2006 The T2 SDE Project
9 # More information can be found in the files COPYING and README.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; version 2 of the License. A copy of the
14 # GNU General Public License can be found in the file COPYING.
15 # --- SDE-COPYRIGHT-NOTE-END ---
17 # Register a window-manager
20 local regdir
=usr
/share
/rock-registry
21 [ -e $root/$regdir/wm
] || mkdir
-p $root/$regdir/wm
23 cat <<-EOT > "$root/$regdir/wm/$1"
29 # Register an application
31 register_application
() {
32 local regdir
=usr
/share
/rock-registry
33 [ -e $root/$regdir/app
] || mkdir
-p $root/$regdir/app
35 cat <<-EOT > "$root/$regdir/app/$1"
41 # Register a xdm - display manager
44 local regdir
=usr
/share
/rock-registry
45 [ -e $root/$regdir/xdm
] || mkdir
-p $root/$regdir/xdm
47 cat <<-EOT > "$root/$regdir/xdm/$1"
54 local file="$1" regdir
=usr
/share
/rock-registry
55 [ -e $root/$regdir/app
] || mkdir
-p $root/$regdir/app
57 echo "Installing ${file##*/} ..."
58 rock_substitute
$file > $root/$regdir/${file##*/}
61 for y
in $
( ls -1 $confdir/*.desktop
2> /dev
/null
); do
62 hook_add postinstall
6 "install_desktop '$y'"