You are not logged in.

#1 2013-12-24 23:06:17

developej
Member
Registered: 2011-10-02
Posts: 68

[SOLVED]i3wm xmessage "Error on executing" every boot

EDIT: SOLVED
Problem was with the autostart script, I don't know why it started to give that error all of a sudden.
I removed last few lines (xrefresh, exit 0) and I don't see error any more
__________________________________________________________________


Hey,

last 2-3 days I get a xmessage popup window on every boot - the message says "Error on executing".
I have an autostart script for i3 which worked without issues for a long time, but I think that the last update may have something to do with this.
One other thing that maybe causing the issue is that I had to kill X few days ago - it was right about that i3 update came so I am not sure which one is causing this error...

On archlinux irc channel I got a suggestion to replace /usr/bin/xmessage with this:

#! /bin/bash
PARENT=`ps --no-heading -o %c -p $PPID`
echo $PARENT | tee /tmp/test.txt

and after rebooting the test.txt had only "sh" in it. I don't know what that means...

Here is the autostart script (it worked without problems):

# Wait for program
wait_for_program () {
    n=0
    while true
    do
    # PID of last background command
    if xdotool search --onlyvisible --pid $!; then
        break
    else
        # 20 seconds timeout
        if [ $n -eq 20 ]; then
        xmessage "Error on executing"
        break
        else
        n=`expr $n + 1`
        sleep 1
        fi
    fi
    done
}

hexchat &
wait_for_program

chromium &
wait_for_program

i3-msg resize grow left 10ppt
i3-msg resize grow left 10ppt

i3-msg focus left
i3-msg split v

vlc &
wait_for_program

i3-msg resize shrink height 10ppt

skype &
wait_for_program
sleep 3

i3-msg resize shrink height 10ppt
i3-msg split h

terminator &
wait_for_program

i3-msg resize shrink left 10ppt
i3-msg resize shrink left 10ppt
i3-msg resize shrink left 10ppt

sleep 3

dropboxd &
wait_for_program

xset -dpms

xrefresh &

exit 0

So, how do I find what is causing this?

Thanks,
developej

Last edited by developej (2013-12-25 21:49:16)

Offline

Board footer

Powered by FluxBB