From 88c638d7d06bdcbd669ea98e3834d15d1a942aab Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 15 Sep 2003 09:49:11 +0000 Subject: [PATCH] r3029: Set debugger options automatically. --- ROX-Filer/AppRun | 4 ++-- ROX-Filer/src/type.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ROX-Filer/AppRun b/ROX-Filer/AppRun index 6ce12836..97ae078f 100755 --- a/ROX-Filer/AppRun +++ b/ROX-Filer/AppRun @@ -15,7 +15,7 @@ PLATFORM=`uname -s`-$ARCH DEBUGGER="" case $1 in - --debug) shift ; DEBUGGER=gdb ;; + --debug) shift ; DEBUGGER="gdb --args" ; DEBUG_OPTIONS="-n --g-fatal-warnings";; --valgrind) shift ; DEBUGGER="valgrind --num-callers=8";; --compile) shift @@ -50,7 +50,7 @@ fi BIN="$APP_DIR/$PLATFORM/$PROG" if [ -x "$BIN" ]; then - exec $DEBUGGER "$BIN" "$@" + exec $DEBUGGER "$BIN" $DEBUG_OPTIONS "$@" else echo "ERROR from $0:" >&2 echo "I cannot find an executable file for your host type ($PLATFORM)." >&2 diff --git a/ROX-Filer/src/type.c b/ROX-Filer/src/type.c index 012cdada..ccd07015 100644 --- a/ROX-Filer/src/type.c +++ b/ROX-Filer/src/type.c @@ -149,12 +149,11 @@ void type_init(void) char *icon_home; delayed_error(_("No icon theme found... installing ROX default " "icon theme...")); - + icon_home = g_build_filename(home_dir, ".icons", NULL); if(!file_exists(icon_home)) mkdir(icon_home, 0755); g_free(icon_home); - icon_home = g_build_filename(home_dir, ".icons", "ROX", NULL); if (symlink(make_path(app_dir, "ROX"), icon_home)) -- 2.11.4.GIT