Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Everything works, ready for the release

  • Loading branch information...
commit 844f207365d13a4f43f46706a74d3ebaea95a2f5 1 parent a82f6b9
@pelya authored
View
10 androidVNC/androidVNC/src/com/cuntubuntu/DataDownloader.java
@@ -675,14 +675,18 @@ private void initParent()
}
}
- if( fakechroot == null ) {
+ if( fakechroot == null )
+ {
try {
Status.setText( "Launching Ubuntu" );
ProcessBuilder pb = new ProcessBuilder("/system/bin/sh", "./chroot.sh", "./startx.sh");
Map<String, String> env = pb.environment();
- int w = Parent.getWindowManager().getDefaultDisplay().getWidth();
- int h = Parent.getWindowManager().getDefaultDisplay().getHeight();
+ int w1 = Parent.getWindowManager().getDefaultDisplay().getWidth();
+ int h1 = Parent.getWindowManager().getDefaultDisplay().getHeight();
+ int w = Math.max(w1, h1);
+ int h = Math.min(w1, h1);
+ System.out.println( "Display resolution: " + String.valueOf(w) + "x" + String.valueOf(h) );
env.put("DISPLAY_RESOLUTION", String.valueOf(w) + "x" + String.valueOf(h));
pb.directory(new File(Parent.getFilesDir().getAbsolutePath()));
fakechroot = pb.start();
View
1  readme.txt
@@ -28,6 +28,7 @@ How does that work.
===================
The Ubuntu shell is launched via the "fakechroot" command, it starts Xvnc server, and connects with androidVNC client.
+See the script dist/chroot.sh for details.
Compilation.
============

0 comments on commit 844f207

Please sign in to comment.
Something went wrong with that request. Please try again.