The Windows connector enables you to resize the desktop in a Windows sessions running in both fullscreen and windowed mode on Sun Ray Clients. This feature is called desktop resizing. You can also enable automatic desktop resizing during hotdesking for all kiosk sessions through the utaction command.
By default, desktop resizing is disabled. You can enable desktop
resizing by using the -f all
option of the
uttsc command when you initiate a windows
session. There are other specific desktop resizing options, which
are detailed in the uttsc man page.
If you enable desktop resizing in windowed mode
(-g
option), you can resize the Windows session
window by dragging the edge of the window. The size of the Windows
desktop is automatically updated.
If you enable desktop resizing in fullscreen mode
(-m
option), you can use the
/opt/SUNWut/bin/utscreenresize -s all command
to automatically resize the desktop using the optimal resolutions.
Desktkop resizing will not work if the Xinerama extension is enabled. See Section 12.2.9, “How to Enable and Disable Xinerama” for more details.
One of the key reasons to enable desktop resizing is during hotdesking. When a user hotdesks to another client, the goal is to set the Windows desktop to the optimal size on the new client.
You can use the following procedure to set up automatic desktop resizing during
hotdesking for all kiosk sessions, which uses the utaction and a shell
script that invokes the utscreenresize command. This procedure assumes
that the Windows session is invoked with the -f
and -m
options.
Become superuser on the Sun Ray server.
Change directory to the session initialization directory.
Oracle Solaris:
# cd /usr/dt/config/Xsession.d
Oracle Linux:
# cd /etc/X11/xinit/xinitrc.d
Create the following customized script to enable automatic
desktop resizing (the script is called
0050.desktopresize.sh
in this
procedure).
#!/bin/sh # Enable automatic Windows desktop resizing each time a user hotdesks /opt/SUNWut/bin/utaction -i -c "/opt/SUNWut/bin/utscreenresize -s all" &
The script name should have the 0050.
prefix to make sure it is run at the appropriate time.
For Oracle Linux, the script name must have the
.sh
extension, otherwise the script
will not get sourced.
Save the script and make the script executable for everyone.
# chmod 775 0050.desktopresize.sh
Start a new session, so the script gets sourced.
For the details about configuring a Kiosk session, see Section 10.10, “Configuring the Windows Connector Kiosk Session Type”.