I have written some GTK programs using gtkD binding for the DTK programming language, which is otherwise the console app but displayed Able to do plots on the screen and save them in the file I would like to run them on the machine, in which I only have console-based SSH access, which means that plots will not be displayed on screen, but Not even files will be written in
When I call main .init (), I get a GTK-warning **: As expected, I can not open the display when I see Main.initCheck () And ignore the errors, I get more error in performance related to the lack of screen.
Is there any easier way to ignore this fact than my screen is that the screen Not available, some dummy divas Drawing on all of your screen on this (/ graphics / equivalent of dev / null) and still are really attracted to Pixmaps and Pixbufs (required to save files to plots) and run non-GUI-based parts of the application for?
Editing: In cases where the app launches a window and block on an event loop, the ideal thing to do is to close the window immediately (or not be able to open it in the first place) ) And continue to run non-GUI-based parts of the program. If this is impossible, then I can work around it by not launching any windows.
In addition, it seems that pixbufs and pixmaps do not work without screens. I tried to draw on a pixmap, one of which made a pixboof, and saved the results in a file, either the main. After calling the checkon () and ignoring the errors or complaining about the lack of a GTK screen in any way and without any comment statement.
I believe the simple solution is to use only GdkPixbuf s Plots for; As far as I know, the gdk-pixbuf library is only related to pixbuffs in memory and does not require a window system. Processing and displaying some parts of your code, strictly different if you do this, it does not matter that there is no screen on the screen. You can also create a command line option to disable drawing on the screen.
You can also use but this is only available since GTK 2.20 and as far as I can cover the d bindings 2.18.
Alternatively, you can use X forwarding in your SSH session; Use -X or -Y on your SSH command line See your SSH manual for more information. If you are running an X server on the machine from which you are doing SSH, then the plot can be displayed on your local machine screen.
Comments
Post a Comment