Giter VIP home page Giter VIP logo

Comments (3)

michaelrsweet avatar michaelrsweet commented on June 20, 2024 1

On Linux you need to run lprint as root or be a member of the group that owns the USB device files.

from lprint.

michaelrsweet avatar michaelrsweet commented on June 20, 2024 1

First, that's a highly system-specific thing. I can't even make it a Linux conditional because every distro supports USB slightly differently... :/

Second, the legacy USB URIs that CUPS 2.x puts out are specific to CUPS 2.x and are NOT a standardized thing. PAPPL (which LPrint uses) generates similar URIs but the values are what PAPPL and libusb require.

from lprint.

proski avatar proski commented on June 20, 2024

Thank you! Indeed, running lprint as root gave me the correct URI. It has an extra space encoded as %20 after Munbyn.

usb://Munbyn%20/ITPP941?serial=9412033000184

The new URL is working (with a lot of struggle, not directly related to this issue). I was able to print a PDF document from an Android phone. I still cannot print anything locally, but that would be better discussed in another issue.

Maybe lprint should print a warning that it cannot access USB devices?

Also, it's not good that lpinfo -v and lprint devices produce different URIs. Maybe one of them should be modified to match the other? Then the USB device matching code should accept differences in spacing in URIs vs devices.

from lprint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.