Closed mcss86 closed 1 year ago
Also attempting to force add a printer and print is triggering apparmor Jul 29 14:38:02 Precision kernel: [ 538.901201] audit: type=1400 audit(1627583882.116:26): apparmor="DENIED" operation="open" profile="snap.lprint.lprint" name="/home/user/Downloads/1e5eac8db404407e8d13cce080fb2be0.zpl" pid=5253 comm="lprint" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
This sounds like something is wrong with snapd’s mapping of the lprint interface permissions. I’ve been working on getting the new PAPPL-based lprint finished up but will see if I can reproduce this on my Ubuntu laptop…
@mcss86 OK, I've promoted the current snap build to beta - please try installing the update lprint 1.1 and let me know what happens.
Hey man, I've installed the update and now built pappl, but im having NIGHTMARES getting pappl libraries in the correct places to run properly. Suggestions for make commands to fix this? @Precision-T1700-32g:~$ lprint /snap/lprint/206/usr/local/bin/lprint: error while loading shared libraries: libpappl.so.1: cannot open shared object file: No such file or directory
On Fri, Dec 17, 2021 at 12:57 PM Michael R Sweet @.***> wrote:
@mcss86 https://github.com/mcss86 OK, I've promoted the current snap build to beta - please try installing the update lprint 1.1 and let me know what happens.
— Reply to this email directly, view it on GitHub https://github.com/michaelrsweet/lprint/issues/41#issuecomment-996912650, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ3TSVTGOCUPHQZ4VUBWRLURN2X5ANCNFSM5BEZJDKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
@mcss86 The PAPPL shared library is part of the snap, although it looks like it isn't getting picked up by the run-time linker for some reason. Investigating...
running "snap connect lprint:raw-usb" after lprint install - may fix this
That did help but now apparmor is in the way :
@.:/home/bt/Downloads# lprint -d labelprinter ./test.zpl lprint: Unable to print './test.zpl': Permission denied @.:/home/bt/Downloads# tail /var/log/syslog an 20 02:26:10 Precision-T1700-32g systemd[4827]: Started snap.lprint.lprint.4c063460-ae28-4ebe-875e-fee964e1765b.scope. Jan 20 02:26:10 Precision-T1700-32g kernel: [ 571.310797] audit: type=1400 audit(1642663570.024:21): apparmor="DENIED" operation="open" profile="snap.lprint.lprint" name="/home/btaublib/Downloads/test.zpl" pid=8178 comm="lprint" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
On Thu, Jan 20, 2022 at 1:05 AM brianbarr @.***> wrote:
running "snap connect lprint:raw-usb" after lprint install - may fix this
— Reply to this email directly, view it on GitHub https://github.com/michaelrsweet/lprint/issues/41#issuecomment-1017148860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ3TSXTOSPNR2EXE5TYYYDUW6Q3JANCNFSM5BEZJDKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
@mcss86 What happens if you try doing:
snap connect lprint:home
???
Same apparmor="Denied"
On Thu, Jan 20, 2022 at 8:21 AM Michael R Sweet @.***> wrote:
@mcss86 https://github.com/mcss86 What happens if you try doing:
snap connect lprint:home
???
— Reply to this email directly, view it on GitHub https://github.com/michaelrsweet/lprint/issues/41#issuecomment-1017499053, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ3TSVFOHKJXEX3R7V6GLDUXAD6ZANCNFSM5BEZJDKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
This might also be of note: @.***:/home/btaublib/Downloads# lprint add -d labelprinter -v usb://UPS%20/Thermal%202844%20 -m zpl_4inch-203dpi-dt lprint: statefile='/var/snap/lprint/211/lprint.conf' E [2022-01-20T07:24:30.615Z] Unable to register system, is the Avahi daemon running?
On Thu, Jan 20, 2022 at 9:31 PM Ben Taublib @.***> wrote:
Same apparmor="Denied"
On Thu, Jan 20, 2022 at 8:21 AM Michael R Sweet @.***> wrote:
@mcss86 https://github.com/mcss86 What happens if you try doing:
snap connect lprint:home
???
— Reply to this email directly, view it on GitHub https://github.com/michaelrsweet/lprint/issues/41#issuecomment-1017499053, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ3TSVFOHKJXEX3R7V6GLDUXAD6ZANCNFSM5BEZJDKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
Installed via snap, @Precision-:~/Downloads$ sudo lprint devices lprint: Unable to initialize USB access: Other error