diff --git a/Makefile b/Makefile index 54bb83c..90ab030 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,6 @@ debtarget: cp pleroma.py deb/usr/lib/plchat cp monkeypatch.py deb/usr/lib/plchat cp timeconvert.py deb/usr/lib/plchat - cp plchatdeb.py deb/usr/lib/plchat cp videowidget.py deb/usr/lib/plchat systemlibtarget: diff --git a/deb/DEBIAN/postinst b/deb/DEBIAN/postinst index 1f24007..27c4e66 100755 --- a/deb/DEBIAN/postinst +++ b/deb/DEBIAN/postinst @@ -4,4 +4,7 @@ cd /usr/lib/plchat python3 -m venv --system-site-packages venv source venv/bin/activate pip3 install PyQt5==5.15.4 PyQt5-Qt5 PyQt5-sip notify-py -ln -sf /usr/lib/plchat/plchatdeb.py /usr/bin/plchat +echo "#!/bin/sh" > /usr/bin/plchat +echo "/usr/lib/plchat/venv/bin/python /usr/plib/plchat/plchatdeb.py" >> /usr/bin/plchat +chmod +x /usr/bin/plchat +