giuspen / x-tile

X Tile
https://www.giuspen.net/x-tile/
Other
69 stars 13 forks source link

libc.prctl not available #23

Open alfredoivan opened 1 year ago

alfredoivan commented 1 year ago

The following warning appears while launching x-tile:

libc.prctl not available, the process name will be python and not x-tile

i tried by manually issuing commands in python3, here is what i got:

>>> import ctypes.util
>>> ctypes.util.find_library("libc")
Traceback (most recent call last):
[...]
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'

also tried this with no success: libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library("libc.so.6"))

this is the line that fixes it and works properly: libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library("c"))

can the code be modified to the line above? see similar issue: https://github.com/python/cpython/issues/86746