Stephen Gran on 4 Oct 2004 15:18:02 -0000


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

Re: [PLUG] X or fluxbox problem


On Sun, Oct 03, 2004 at 09:27:18PM -0400, Art Alexion said:
> The relevant part is:
> 
> case $# in
> 1)
>    if [ -x /usr/share/apps/switchdesk/Xclients.$1 ]; then
>       exec -l $SHELL -c "/usr/share/apps/switchdesk/Xclients.$1";
>    fi;
> 
>    case $1 in
>    failsafe)
>       exec -l $SHELL -c "xterm -geometry 80x24-0-0"
>       ;;
>    gnome)
>       exec -l $SHELL -c "gnome-session"
>       ;;
>    kde|kde1|kde2)
>       exec -l $SHELL -c "/usr/share/apps/switchdesk/Xclients.kde"
>       ;;
> # I inserted the following 3 lines in order to see if I could get fluxbox
> # loading from kdm/xdm
>    fluxbox)
>        exec -l $SHELL -c "/usr/local/bin/fluxbox"
>    ;;
>    twm)
>        # fall back to twm
>       exec -l $SHELL -c "/usr/share/apps/switchdesk/Xclients.twm"
>       ;;
>    esac
> esac
> 
> Thanks for helping me troubleshoot this.

What are the contents of /usr/share/apps/switchdesk/Xclients.kde ?  That
is not the binary, but presumably some wrapper script.  You're running
the binary directly, but using $SHELL -c to do so, which seems
unnecessary.  I would either create a wrapper script, or just use exec
$binary directly.  
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | When it is incorrect, it is, at least   |
|  steve@lobefin.net             | *authoritatively* incorrect. --         |
|  http://www.lobefin.net/~steve | Hitchiker's Guide To The Galaxy         |
 --------------------------------------------------------------------------

Attachment: pgpn4RLJYblE2.pgp
Description: PGP signature