View Single Post
Posts: 344 | Thanked: 1,345 times | Joined on Aug 2012 @ Paris, FR
#8
Originally Posted by MSameer View Post
They are compressed AFAICT but not optimized but it's trivial to decompress them.

If we have an LD_PRELOAD that can get access to the actual QML data (I don't yet know how) then we can capture the data, modify it and return the modified data to the QML "compiler". It's not resource intensive. I have done something similar in a Qt4 app of mine (replace certain strings during runtime in the embedded QML files). Don't ask me why I did that

EDIT: One advantage for patching during runtime is we can tie the patches to a certain OS release easily.
I have looked about the possibility to LD_PRELOAD on lipstick. And sadly, this only happens if you manually launch lipstick as privileged. lipstick have a setgid that prevents LD_PRELOAD when started by systemd.

This means that we are seriously limited in this side. Another way to do is to patch and override some system packages, like lipstick-qt5.
__________________
Developer of Friends Facebook client, patchmanager, Phonebot
Blogger at Jollafr and random thoughts on my personnal blog
Support my work
 

The Following User Says Thank You to Sfiet_Konstantin For This Useful Post: