im writring a python script that checks some permmission and if you have permmission it will open xfreerdp. Now i have a problem. If i just write in terminal the xfreerdp command it will open this. But if I use this python script it won't: The error is that: /usr/bin/xfreerdp: /tmp/_MEI8cxde9/libz.so.1: version `ZLIB_1.2.9' not found (required by /lib/x86_64-linux-gnu/libpng16.so.16)
But if i replace the libz.so.1 with /lib/x86_64-linux-gnu/libz.so.1 while running the python script it will work.
How can i tell what libz.so.1 copy in this /temp/ file?