Require help on Display Emulator.(Xvfb)

Require help on Display Emulator.(Xvfb)

Post by prashan.. » Fri, 03 Dec 1999 04:00:00



Hi,
I have a problem configuring "Xvfb". I'm working on SunOS.
A X-Server is running on my Win 95 desktop. I have started Xvfb on the
Solaris server using the command "Xvfb :1 -screen 0 1600x1200x32 -ac -
fbdir /usr/tmp"
There are 2 telnet sessions to the Unix server, Telnet Session A, with
DISPLAY variable set to Xserver running on the Desktop. Telnet session
B has the DISPLAY variable set to Xvfb running on solaris.

I have an application which opens a file given as argument in a window.
Then it prints it onto the file "xprinter.out".

When this application is run on Telnet session A, it opens a window,
then opens the file and prints it onto xprinter.out.

This doesn't work when the application is run from telnet session B. I
don't get the xprinter.out file.

Could somebody please tell me as to what needs to be done to get this
working with Xvfb. I want the file xprinter.out without opening the
window, everything should be done in the background.

Thanks in advance,
Prashant.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. Require help on Xvfb. **Urgent**

Hi all !
I am having a problem making my application work with Xvfb.

My application opens a file in a window and tries to print it. A
printer setup screen is popped up, which has an "APPLY" button and is
in focus. I generate the Enter key press event for this window. This
makes the opened file to be printed.

When the application is run with the display set to the X-server
running on my PC, it works fine.
If the same application is run with the display set to Xvfb running on
the Unix box, it doesn't take the key press event.

How do I pass the Enter key press event when i'm using Xvfb?

Xvfb is started using the command " Xvfb -pixdepths 24 -
co /usr/X11R6/lib/X11/rgb -fbdir /tmp +accessx"

I don't have the window ids of the Printer setup screen, so I'm using
this piece of code to pass the Enter Key press event. Apply button on
the Printer setup screen has the focus. Looks like this is not in focus
when using Xvfb.

        .
        .
        .
        XGetInputFocus(theDisplay, &child_return, &revert_to);
        XQueryTree(theDisplay, child_return, &root_return,
&parent_return, &children, &nchildren);

        for(i=0; i<index; i++)
        {
                printf("Using Window Id %d root Window %d\n", winArray
[i], rootArray[i]);
                event.type=2;
                event.xkey.type=2;
                event.xkey.send_event=0;
                event.xkey.state = 0;
                event.xkey.display=theDisplay;
                event.xkey.window=*children;
                event.xkey.root=root_return;
                event.xkey.keycode=35;
                event.xkey.same_screen = 1;

                XtDispatchEvent(&event);
        }

        .
        .
        .

Please let me know if there is any configuration issue that I have
missed.

Thanks in Advance,
Prashant.

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Frequent server crashes

3. Xvfb X-server emulator and Oracle 11i reports server

4. Conner DAT autoloader?

5. is Xvfb required for this?

6. Maximum Number of Client Connections

7. Xvfb version 6 Display size on IBM AIX

8. Expected performance of raid chassis

9. Help Required: Exiting XWindows kills display

10. Help Required: Displaying a Win32 App on Digital UNIX

11. Help! Emulated emulator emulator .signature of long ago...

12. Require Network emulators !

13. Q:Help hElp heLp helP ......terminal emulator....?