summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-03-24 23:46:26 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-03-24 23:46:26 +0100
commit252473eb0bfd1aee56709512f42cc8dcd281a311 (patch)
tree25866606c6c7458b93841152baa1e740b158dd6d
parenta257173de88e39529747fcaca30b2a23ac7dfdc1 (diff)
use the latest libui-sh and maximize the features for initialising it (thats needed now as libui no longer incorrectly directly accessess aif variables)2010.03.25
-rw-r--r--src/core/libs/lib-ui.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index 0d2da20..fcde53d 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -1,12 +1,18 @@
#!/bin/bash
# Note that $var_UI_TYPE may not be set here. especially if being loaded in the "early bootstrap" phase
-source /usr/lib/lib-ui.sh
+source /usr/lib/libui.sh
# mandatory to call me when you want to use me. call me again after setting $var_UI_TYPE
ui_init ()
{
- lib-ui-sh-init $RUNTIME_DIR $var_UI_TYPE
+ cats=(MAIN PROCEDURE UI UI-INTERACTIVE FS MISC NETWORK PACMAN SOFTWARE)
+ if [ "$LOG_TO_FILE" ]; then
+ logs=($LOG $LOGFILE)
+ else
+ logs=$LOG
+ fi
+ libui-sh-init $var_UI_TYPE $RUNTIME_DIR "${logs[*]}" "${cats[*]}"
# get keymap/font (maybe configured by aif allready in another process or even in another shell)
# otherwise, take default keymap and consolefont as configured in /etc/rc.conf. can be overridden