Package: python-x2gobroker Version: 0.0.2.3 Tags: patch
It was noted by my users that their x2go sessions started via the broker
always got the default dpi setting of 96 instead of the dpi value native
to their machine. Tracing through the code as far as I can see the
problem is that if the /etc/x2go/broker/x2gobroker-sessionprofiles.conf
file doesn't have a dpi= setting defined in it the default one is
provided by the value in the
/usr/lib/python2.7/dist-packages/x2gobroker/defaults.py file under
X2GOBROKER_SESSIONPROFILE_DEFAULTS that's not ideal since it
stops the client from supplying it's autodetected one which matches the
actual dpi on the user's machine.
I'd suggest updating the /usr/lib/python2.7/dist-packages/x2gobroker/defaults.py file to remove the line "u'dpi': 96," from the X2GOBROKER_SESSIONPROFILE_DEFAULTS section (as per the attached patch).
In my testing with that default value gone (assuming that setdpi=1 is set);
So as far is I can see in default cases having that default value removed shouldn't change behavior and it would allow people optionally configure their sessionprofiles to have no dpi value set so broker sessions would be free to use the native dpi value provided by the client (which doesn't seem to be possible currently due to the default overriding the client providing it's own value).
Thanks Jason