forked from shaba/openuds
Added support for wallpaper on RDP if desired
This commit is contained in:
parent
2108353d1e
commit
3181fdbf18
@ -23,6 +23,7 @@ public class WinRdpFile {
|
||||
public boolean redirectAudio = false;
|
||||
public boolean compression = false;
|
||||
public boolean displayConnectionBar = true;
|
||||
public boolean showWallpaper = false;
|
||||
|
||||
public WinRdpFile(boolean fullScreen, String width, String height, String bpp) {
|
||||
this.width = width;
|
||||
@ -42,6 +43,7 @@ public class WinRdpFile {
|
||||
String printers = redirectPrinters ? "1" : "0";
|
||||
String compression = this.compression ? "1" : "0";
|
||||
String bar = displayConnectionBar ? "1" : "0";
|
||||
String disableWallpaper = showWallpaper ? "0" : "1";
|
||||
|
||||
FileWriter fstream = new FileWriter(fname);
|
||||
PrintWriter out = new PrintWriter(fstream);
|
||||
@ -67,7 +69,7 @@ public class WinRdpFile {
|
||||
}
|
||||
out.println("alternate shell:s:");
|
||||
out.println("shell working directory:s:");
|
||||
out.println("disable wallpaper:i:1");
|
||||
out.println("disable wallpaper:i:"+disableWallpaper);
|
||||
out.println("disable full window drag:i:1");
|
||||
out.println("disable menu anims:i:1");
|
||||
out.println("disable themes:i:1");
|
||||
|
@ -78,6 +78,10 @@ public class WindowsApplet implements OsApplet {
|
||||
rdp.redirectPrinters = params.get("pr").equals("1");
|
||||
rdp.redirectAudio = params.get("au").equals("1");
|
||||
rdp.compression = params.get("cr").equals("1");
|
||||
if( params.get("sw") != null )
|
||||
{
|
||||
rdp.showWallpaper = params.get("sw").equals("1");
|
||||
}
|
||||
|
||||
try {
|
||||
rdp.saveFile( rdpFileName );
|
||||
|
Loading…
Reference in New Issue
Block a user