xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 2 years ago

Closed 2 years ago

Last modified 12 months ago

#2550 closed enhancement (fixed)

trim win32 client builds

Reported by: totaamwin32 Owned by: Antoine Martin
Priority: major Milestone: 4.0
Component: packaging Version: 3.0.x
Keywords: Cc:


They don't really need all the video codecs since we don't do video with webcam forwarding and webcam forwarding is currently broken anyway. Then we can also drop numpy and save tens of MB.

Attachments (1)

Xpra_cmd_2020-02-12_01-24-56-dot_font_size-client.png (3.9 KB) - added by stdedos 2 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 2 years ago by totaamwin32

Resolution: fixed
Status: newclosed

What's left:

$ du -sk * | sort -n | tail
548     libssl-1_1-x64.dll
612     Plink.exe
620     msvcrt.dll
656     etc
688     openssl.exe
881     icons
2672    libcrypto-1_1-x64.dll
3356    libpython3.8.dll
40857   share
128957  lib

In share:

$ du -sk share/* | sort -n | tail
4       share/p11-kit
44      share/gst-plugins-base
54      share/gstreamer-1.0
168     share/fontconfig
217     share/locale
401     share/icons
583     share/glib-2.0
3012    share/xml
16136   share/fonts
20232   share/gir-1.0

Maybe trim the fonts?

$ du -sk share/fonts/* | sort -n | tail
704     share/fonts/cantarell
2224    share/fonts/adobe-source-code-pro
3184    share/fonts/gsfonts
10024   share/fonts/TTF

In lib:

$ du -sk lib/* | sort -n | tail
2327    lib/girepository-1.0
2816    lib/gstreamer-1.0
3356    lib/libpython3.8.dll
3376    lib/libvpx-1.dll
3548    lib/librsvg-2-2.dll
4564    lib/libpdfium.dll
5611    lib/xpra
6484    lib/libgtk-3-0.dll
9480    lib/library.zip
21888   lib/avcodec-58.dll

in library.zip:

$ du -sk * | sort -n | tail
252     email
273     multiprocessing
293     comtypes
316     pyasn1
323     distutils
361     pycparser
424     pkg_resources
625     paramiko
4356    encodings
23300   OpenGL

The best way to save more would be to completely skip or rebuild a leaner ffmpeg avcodec library.
This will do for now.

We've saved 7M on the exe size:

$ du -sm *exe
58      Xpra-Client-Python3-x86_64_Setup_4.0-r24958.exe
51      Xpra-Client-Python3-x86_64_Setup_4.0-r24971.exe

comment:2 Changed 2 years ago by Antoine Martin

Added weight for icons: #2563

comment:3 Changed 2 years ago by stdedos

Can this font somehow be added?

(xpra_cmd:4876): Pango-WARNING **: 10:47:07.914: couldn't load font "Bitstream Vera Sans Not-Rotated 14.662109375", falling back to "Sans Not-Rotated 14.662109375", expect ugly output.

I don't remember a client log where I haven't seen this message. Maybe it's also related to the fact that non-bold dots are hard to read in the terminal?

comment:4 Changed 2 years ago by Antoine Martin

Can this font somehow be added?

No: #2590

Maybe it's also related to the fact that non-bold dots are hard to read in the terminal?

It isn't. Xpra has no control over how fonts are handled in your terminal application.

comment:5 Changed 12 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2550

Note: See TracTickets for help on using tickets.