ssanthosh243 / semicomplete

Automatically exported from code.google.com/p/semicomplete
0 stars 0 forks source link

xdotool doesn't work when called from detached scripts #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Download the attached `test-script.sh' file.
2. Run `bash test-script.sh' and note that the window id of the launched
terminal is correctly stored in the `output' file.
3. Run `nohup bash test-script.sh' and note that the `output' file is empty.

What is the expected output? What do you see instead?

I would expect the window id to be stored in the `output' file, regardless
of the way the test script is called.

What version of the product are you using? On what operating system?

I'm using xdotool 1.20100227.2679 on Arch Linux (x86_64).

Please provide any additional information below.

I understand this report isn't very helpful, but I'm not sure how to
provide further debugging information for this issue. I also tested with
xdotool 20091231.03, which didn't exhibit this problem.

Attached are three traces. The first two are from the number 2 & 3 steps
above (`trace1' and `trace2' respectively). The third (`trace3') is from
running `bash test-script.sh' from Gnome's "Run Application" dialog with
the "Run in terminal" option unchecked.

Original issue reported on code.google.com by foutrelis@gmail.com on 1 Mar 2010 at 2:23

Attachments:

GoogleCodeExporter commented 9 years ago
Yeah I found this bug last night and fixed it in SVN.

Problem is that we use isatty(0) to check if stdin is a tty, and try to read 
from a 
file if it's not a tty. That was not a good decision and I reverted it.

New release coming soon and this is fixed in svn head.

Original comment by jls.semi...@gmail.com on 1 Mar 2010 at 5:35

GoogleCodeExporter commented 9 years ago
Oh, btw, thanks for trying the new version so quickly after the release! :)

Original comment by jls.semi...@gmail.com on 1 Mar 2010 at 5:45

GoogleCodeExporter commented 9 years ago
Hehe, no problem. Cheers for the immediate resolution. :)

Original comment by foutrelis@gmail.com on 1 Mar 2010 at 7:56

GoogleCodeExporter commented 9 years ago
http://www.semicomplete.com/blog/geekery/xdotool-1.20100302.html

Fixed in latest release. Let me know if you have problems.

Original comment by jls.semi...@gmail.com on 2 Mar 2010 at 9:50