File: 01_take_screenshots.diff

package info (click to toggle)
java-gnome 4.1.3-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,596 kB
  • ctags: 7,304
  • sloc: java: 27,001; ansic: 4,518; perl: 1,656; python: 1,187; makefile: 140
file content (60 lines) | stat: -rw-r--r-- 2,599 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
## Description: enable screenshots taking for the documentation.
## Origin/Author: add some origin or author
## Bug: bug URL
--- a/tests/screenshots/Harness.java
+++ b/tests/screenshots/Harness.java
@@ -92,7 +92,7 @@
  */
 public final class Harness
 {
-    private static final boolean USE_VIRTUAL_DISPLAY = false;
+    private static final boolean USE_VIRTUAL_DISPLAY = true;
 
     public static void main(String[] args) throws IOException, InterruptedException {
         final String DISPLAY;
@@ -135,15 +135,15 @@
                 checkAlive(xServerVirtual, "Xvfb");
 
                 System.out.println("EXEC\tmetacity");
-                windowManager = r.exec("/usr/bin/metacity --display=" + DISPLAY);
+                windowManager = r.exec("/usr/bin/dbus-run-session -- /usr/bin/metacity --display=" + DISPLAY);
                 Thread.sleep(100);
                 checkAlive(windowManager, "metacity");
 
-                System.out.println("EXEC\tgnome-settings-daemon");
+                /*System.out.println("EXEC\tgnome-settings-daemon");
                 settingsDaemon = r.exec("/usr/libexec/gnome-settings-daemon --display=" + DISPLAY
                         + " --disable-crash-dialog");
                 Thread.sleep(100);
-                checkAlive(settingsDaemon, "gnome-settings-daemon");
+                checkAlive(settingsDaemon, "gnome-settings-daemon");*/
             }
 
             Gtk.init(new String[] {
@@ -175,7 +175,7 @@
                 SnapshotQuestionMessageDialog.class,
                 SnapshotTreeView.class,
                 SnapshotTreeStore.class,
-                SnapshotFileChooserDialog.class,
+                /*SnapshotFileChooserDialog.class,*/
                 SnapshotAboutDialog.class,
                 SnapshotHScale.class,
                 SnapshotVScale.class,
@@ -189,7 +189,7 @@
                 SnapshotContextLine.class,
                 SnapshotTextView.class,
                 SnapshotTextViewBorderWindows.class,
-                SnapshotTextViewSpelling.class,
+                /*SnapshotTextViewSpelling.class,*/
                 SnapshotContextArc.class,
                 SnapshotContextArcNegative.class,
                 SnapshotMatrixRotate.class,
@@ -313,7 +313,7 @@
             if (windowManager != null) {
                 System.out.println("KILL\tmetacity");
                 windowManager.destroy();
-                windowManager.waitFor();
+                /*windowManager.waitFor();*/
             }
             if (settingsDaemon != null) {
                 System.out.println("KILL\tgnome-settings-daemon");