[tomboy] Redirect complete applet output to ~/.config/tomboy/tomboy-panel.log



commit 08423532b16edc2fa6a3c1e72d7cc766bf07526d
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Mon Sep 14 10:34:39 2009 -0700

    Redirect complete applet output to ~/.config/tomboy/tomboy-panel.log
    
    This should make it easier to diagnose what's going on in the case
    of panel applet crashes.

 Tomboy/tomboy-panel.in |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/Tomboy/tomboy-panel.in b/Tomboy/tomboy-panel.in
index 8b8d620..206a21f 100644
--- a/Tomboy/tomboy-panel.in
+++ b/Tomboy/tomboy-panel.in
@@ -3,6 +3,8 @@
 export LD_LIBRARY_PATH="@pkglibdir ${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
 export MONO_PATH=$MONO_PATH:@pkglibdir@:@pkglibdir@/addins
 export TOMBOY_WRAPPER_PATH="@bindir@/@wrapper@"
+TOMBOY_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/tomboy"
+TOMBOY_PANEL_LOG="${TOMBOY_CONFIG_DIR}/tomboy-panel.log"
 
 THIS_EXE="@pkglibdir@/@target@"
 
@@ -10,4 +12,5 @@ if [ -n "@extragac@" ]; then
     export MONO_GAC_PREFIX="@extragac@:$MONO_GAC_PREFIX"
 fi
 
-exec mono $MONO_EXTRA_ARGS $THIS_EXE --sm-disable --panel-applet "$@"
+mkdir -p `dirname "$TOMBOY_PANEL_LOG"`
+(exec mono $MONO_EXTRA_ARGS $THIS_EXE --sm-disable --panel-applet "$@") &> $TOMBOY_PANEL_LOG



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]