gillescastel / inkscape-shortcut-manager

Inkscape shorcut manager
MIT License
360 stars 98 forks source link

Can't detect inkscape window #25

Open sleepymalc opened 2 years ago

sleepymalc commented 2 years ago

Caveat: I'm using macOS, which is not supported by this originally.

Since I see that xlib is now available for macOS users, hence I start to configure this. But I find out that after I run main.py, I have something like {'style': PosixPath('/Users/pbb/.config/inkscape-shortcut-manager/styles'), 'object': PosixPath('/Users/pbb/.config/inkscape-shortcut-manager/objects')}, which seems working. But then, when I open an inkscape window, nor did the expected output from the script like "Found existing window" or "New window!" is printed. I'm not sure why... I have installed python.xlib, xQuartz. And I need to activate xserver before I execute main.py. In detail, I need to xhost +, and DISPLAY=":0" python3 main.py to let it near runs. Hope there is someone in the same situation can help.