| J.O. Aho 2007-11-19, 1:15 pm |
| Ant wrote:
> test -n "$KDEWM" && KDEWM="--windowmanager $KDEWM"
> echo "test wm" >> /home/ant/download/log.txt
> kwrapper ksmserver $KDEWM
> echo "kwrapper ksmserver" >> /home/ant/download/log.txt
> I got "test wm" in log.txt, but nothing after it. It looks like the hang
> happens with kwrapper ksmserver section. I tried to view kwrapper and
> ksmserver files, but they are binaries. Now, I am stuck but at least we
> can see where it is hanging now. 
As you too concluded, the problem seems to be in the kwrapper line
I would suggest you add the following line before it
test -n "$KDEWM" && KDEWM="--windowmanager $KDEWM"
echo "kwrapper ksmserver $KDEWM" >> /home/ant/download/log.txt
kwrapper ksmserver $KDEWM
This way you will see exactly what the command gets as parameters.
Looking at your strace results, I think it may be your /tmp that is part of
the problem (I may be wrong too)
connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 19) = -1 ENOENT (No
such file or directory)
close(3) = 0
I guess that the user you are starting the startx with may not have full
privileges on the directory, try with 'chmod 1777 -R /tmp', that should take
care of all rights, you could test and see if it helped or not, if not, then
this wasn't the problem (don't worry, 1777 is what the /tmp should have).
Next thing that looks a bit bad is
connect(3, {sa_family=AF_INET, sin_port=htons(6000),
sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
close(3
This leads to another possible problem, your X is started with "-nolisten
tcp", which means it won't listen to tcp/ip traffic, while the row above lets
me think that KDE is set to use tcp/ip for communication.
I would suggest you edit your startx, change
defaultserverargs="-nolisten tcp -br"
to
defaultserverargs="-br"
Try again, if it won't work now, then I'm out of ideas for the moment.
--
//Aho
|